Macaulay2 » Documentation
Packages » Macaulay2Doc :: mutableMatrix(Ring,ZZ,ZZ)
next | previous | forward | backward | up | index | toc

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

Ways to use this method: