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

randomMutableMatrix(ZZ,ZZ,RR,ZZ) -- a random mutable matrix of integers

Synopsis

Description

This function has been superceded by fillMatrix, which works over more rings, is much faster for large matrices, and is more flexible.
i1 : randomMutableMatrix(10,15,.9,100)

o1 = | . .  .   .   .   .   .   .   .   .   .   .  .   .   . |
     | . 19 7   .   -32 .   -22 .   -39 .   .   .  .   .   . |
     | . 22 .   .   .   .   .   .   .   .   .   .  .   .   . |
     | . .  .   .   .   .   .   .   .   .   .   .  50  .   . |
     | . .  .   .   .   .   .   .   .   .   .   .  .   .   . |
     | . .  .   .   .   .   .   -31 .   .   .   47 -51 .   . |
     | . .  -85 .   .   .   .   2   -42 -34 .   .  .   -37 . |
     | . 69 65  .   .   .   89  -81 .   .   .   .  .   .   . |
     | . .  11  -24 .   .   .   .   .   .   -37 .  .   .   . |
     | . .  .   -33 .   -79 .   .   .   94  .   .  .   .   . |

o1 : MutableMatrix

See also