next | previous | forward | backward | up | top | index | toc | Macaulay2 website
SparseResultants :: randomMultidimensionalMatrix

randomMultidimensionalMatrix -- random multidimensional matrix

Synopsis

Description

i1 : randomMultidimensionalMatrix(2,4,3)

o1 = {{{8, 1, 3}, {7, 8, 3}, {3, 7, 8}, {8, 5, 7}}, {{8, 5, 2}, {3, 6, 3},
     ------------------------------------------------------------------------
     {6, 8, 6}, {9, 3, 7}}}

o1 : 3-dimensional matrix of shape 2 x 4 x 3 over ZZ
i2 : randomMultidimensionalMatrix((2,2,3),CoefficientRing=>ZZ/101)

o2 = {{{-47, 38, 2}, {16, 22, 45}}, {{-34, -48, -47}, {47, 19, -16}}}

                                                   ZZ
o2 : 3-dimensional matrix of shape 2 x 2 x 3 over ---
                                                  101

See also

Ways to use randomMultidimensionalMatrix :

For the programmer

The object randomMultidimensionalMatrix is a function closure.