next | previous | forward | backward | up | top | index | toc | home

reshape(Module,Module,Matrix) -- reshape a matrix

Synopsis

Description

Currently, it is assumed that f and the result both have the same number of entries. The resulting map is always of degree zero.
i1 : f = matrix{{1,3,5,7,9,11},{2,4,6,8,10,12}}

o1 = | 1 3 5 7 9  11 |
     | 2 4 6 8 10 12 |

              2        6
o1 : Matrix ZZ  <--- ZZ
i2 : reshape(ZZ^3,ZZ^4,f)

o2 = | 1 4 7 10 |
     | 2 5 8 11 |
     | 3 6 9 12 |

              3        4
o2 : Matrix ZZ  <--- ZZ