# matrix -- make a matrix

## Description

The simplest use of this function is to define a matrix by giving a doubly nested list of ring elements. One may also explicitly provide the ring, or give a matrix as a doubly-nested list of matrices.
 i1 : matrix{{1,2,3},{4,5,6}} o1 = | 1 2 3 | | 4 5 6 | 2 3 o1 : Matrix ZZ <--- ZZ i2 : R = QQ[x,y,z]; i3 : matrix{{x,0,2},{1,2,y}} o3 = | x 0 2 | | 1 2 y | 2 3 o3 : Matrix R <--- R
The map function provides other methods to define a matrix.

## Ways to use matrix :

• matrix(BettiTally) (missing documentation) -- Betti diagram to matrix
• matrix(BettiTally,ZZ) (missing documentation) -- Betti diagram to matrix
• matrix(BettiTally,ZZ,ZZ) (missing documentation) -- Betti diagram to matrix
• matrix(List) -- create a matrix from a doubly-nested list of ring elements or matrices
• matrix(Matrix) -- the matrix between generators
• matrix(Matrix,ZZ,ZZ) (missing documentation)
• matrix(MutableMatrix) -- make a matrix from a mutable one
• matrix(Ring,List) -- create a matrix from a doubly nested list of ring elements or matrices
• matrix(RingFamily,List), see matrix(Ring,List) -- create a matrix from a doubly nested list of ring elements or matrices
• matrix(Number), see matrix(RingElement) -- make a matrix from a ring element
• matrix(RingElement) -- make a matrix from a ring element
• matrix(RingMap) -- the matrix associated to a ring map
• matrix(String) -- make a matrix using classic Macaulay syntax
• matrix(Vector)