next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: mutableMatrix(Ring,ZZ,ZZ)

mutableMatrix(Ring,ZZ,ZZ) -- make a mutable matrix filled with zeroes

Synopsis

Description

i1 : m = mutableMatrix(QQ,10,20)

o1 = 0

o1 : MutableMatrix
i2 : m_(5,5) = 11/13

     11
o2 = --
     13

o2 : QQ
i3 : m

o3 = | 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 11/13 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
     | 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 |

o3 : MutableMatrix

See also