next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 web site
Macaulay2Doc
::
matrix(MutableMatrix)
matrix(MutableMatrix) -- make a matrix from a mutable one
Synopsis
Usage:
matrix m
Function:
matrix
Inputs:
m
,
a
mutable matrix
Optional inputs
:
Degree => ...
, -- create a matrix from a doubly-nested list of ring elements or matrices
Outputs:
a
matrix
, the same matrix as m, but not mutable.
Description
There are many more operations available for matrices than for immutable matrices, but mutable matrices are sometimes easier to construct.
m = mutableMatrix(ZZ,3,5)
m_(1,2) = 3
m_(2,4) = 54
m_(0,0) = -12
m
matrix m
See also
mutableMatrix
-- make a mutable matrix
mutableIdentity
-- make a mutable identity matrix
MutableMatrix
-- the class of all mutable matrices