[GAP Forum] question about translations

João Araújo mjoao at univ-ab.pt
Tue Apr 24 13:14:36 BST 2007


I have a matrix of transformations:
[[Transformation([1,2]),Transformation([2,2])],
[Transformation([2,2]),Transformation([2,2])],
[Transformation([1,2]),Transformation([2,1])]]

and I want to replace 

[Transformation([1,2]) by 1;
[Transformation([2,2]) by 2;
[Transformation([2,1]) by 3

obtaining the matrix

[[1,2],
 [2,2],
 [1,3]].

The original matrix might be very big; so is there an automatic way of doing this?
I would be very grateful if someone could help me with this. 
Joao


More information about the Forum mailing list