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

shape -- shape of a multidimensional matrix

Synopsis

Description

i1 : M = multidimensionalMatrix {{{0, 8, 3}, {7, 3, 2}, {2, 7, 0}, {4, 8, 4}}, {{0, 8, 1}, {3, 1, 0}, {4, 7, 4}, {0, 6, 9}}}

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

o1 : 3-dimensional matrix of shape 2 x 4 x 3 over ZZ
i2 : shape M

o2 = {2, 4, 3}

o2 : List

See also

Ways to use shape :

For the programmer

The object shape is a method function.