next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: Matrix _ Sequence

Matrix _ Sequence -- get entry of matrix

Synopsis

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