next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 web site
Macaulay2Doc
::
Matrix _ Sequence
Matrix _ Sequence -- get entry of matrix
Synopsis
Usage:
M_(i,j)
Operator:
_
Inputs:
M
,
a
matrix
, or
a
mutable matrix
i
,
a
sequence
, both integers
Outputs:
a
ring element
, the (i,j)-th entry of the matrix M, where M_(0,0) is the top left entry
Description
All indexing in Macaulay2 is zero-based, so the indices start at zero.
M = matrix{{1,2,3},{0,5,6}}
M_(1,2)
The matrix may be a
a
mutable matrix
too:
N = mutableMatrix M
N_(1,0)
Entries of mutable matrices can be changed:
N_(1,0) = 37
N
See also
Matrix
-- the class of all matrices
MutableMatrix
-- the class of all mutable matrices