Macaulay2
»
Documentation
Packages
»
Macaulay2Doc
::
matrix(RingElement)
next
|
previous
|
forward
|
backward
| up |
index
|
toc
matrix(RingElement) -- make a matrix from a ring element
Synopsis
Function:
matrix
Usage:
matrix r
Inputs:
r
Optional inputs
:
Degree
=>
...
,
default value null
,
create a matrix from a doubly-nested list of ring elements or matrices
Outputs:
a
matrix
, the one by one matrix with
r
as its single entry
Description
i1 : matrix 48 o1 = | 48 | 1 1 o1 : Matrix ZZ <-- ZZ
Ways to use this method:
matrix(Number)
matrix(RingElement)
-- make a matrix from a ring element