Macaulay2 » Documentation
Packages » Macaulay2Doc » matrices » Matrix » entries
next | previous | forward | backward | up | index | toc

entries -- get the entries of a matrix

Description

i1 : R = ZZ[x,y,z];
i2 : M = matrix{{x,z,x*y},{x^2+z,y*z,1}}

o2 = | x    z  xy |
     | x2+z yz 1  |

             2      3
o2 : Matrix R  <-- R
i3 : entries M

                     2
o3 = {{x, z, x*y}, {x  + z, y*z, 1}}

o3 : List
i4 : N = mutableMatrix{{x,z,x*y},{x^2+z,y*z,1}}

o4 = | x    z  xy |
     | x2+z yz 1  |

o4 : MutableMatrix
i5 : entries N

                     2
o5 = {{x, z, x*y}, {x  + z, y*z, 1}}

o5 : List

Ways to use entries:

  • entries(Matrix)
  • entries(MutableMatrix)
  • entries(Vector) -- get the entries of a vector

For the programmer

The object entries is a method function.


The source of this document is in Macaulay2Doc/functions/entries-doc.m2:25:0.