Macaulay2 » Documentation
Packages » Macaulay2Doc » matrices » Matrix
next | previous | forward | backward | up | index | toc

Matrix -- the class of all matrices

Description

A matrix is a homomorphism between two modules, together with an integer (or vector of integers) called its degree, which is used when determining whether the map is homogeneous. The matrix is stored in the usual way as a rectangular array of ring elements. When the source or target modules are not free, the matrix is interpreted as a linear transformation in terms of the generators of the modules.

A matrix f is an immutable object, so if you want to cache information about it, put it in the hash table f.cache.

Common ways to make a matrix: Common ways to get information about matrices: Common operations on matrices: Common ways to use a matrix:

See also

Menu

Functions and methods returning a matrix:

Methods that use a matrix:

  • Matrix * Number -- see * -- a binary operator, usually used for multiplication
  • Matrix * RingElement -- see * -- a binary operator, usually used for multiplication
  • Matrix * Vector -- see * -- a binary operator, usually used for multiplication
  • Number * Matrix -- see * -- a binary operator, usually used for multiplication
  • RingElement * Matrix -- see * -- a binary operator, usually used for multiplication
  • Matrix + Number -- see + -- a unary or binary operator, usually used for addition
  • Matrix + RingElement -- see + -- a unary or binary operator, usually used for addition
  • Number + Matrix -- see + -- a unary or binary operator, usually used for addition
  • RingElement + Matrix -- see + -- a unary or binary operator, usually used for addition
  • Matrix - Number -- see - -- a unary or binary operator, usually used for negation or subtraction
  • Matrix - RingElement -- see - -- a unary or binary operator, usually used for negation or subtraction
  • Number - Matrix -- see - -- a unary or binary operator, usually used for negation or subtraction
  • RingElement - Matrix -- see - -- a unary or binary operator, usually used for negation or subtraction
  • Matrix == Matrix -- see basic arithmetic of matrices
  • basis(InfiniteNumber,InfiniteNumber,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(InfiniteNumber,List,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(InfiniteNumber,ZZ,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(List,InfiniteNumber,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(List,List,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(List,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(List,ZZ,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(ZZ,InfiniteNumber,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(ZZ,List,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(ZZ,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • basis(ZZ,ZZ,Matrix) -- see basis -- basis or generating set of all or part of a ring, ideal or module
  • betti(Matrix) -- see betti -- display or modify a Betti diagram
  • clean(RR,Matrix) -- see clean -- set to zero elements that are approximately zero
  • coefficients(Matrix) -- see coefficients -- get the monomials and coefficients of a polynomial or matrix
  • coimage(Matrix) -- see coimage -- coimage of a map
  • cokernel(Matrix) -- cokernel of a map of modules
  • components(Matrix) -- see components -- list the components of a direct sum
  • contract(Matrix,Number) -- see contract(Matrix,Matrix) -- contract a matrix by a matrix
  • contract(Matrix,RingElement) -- see contract(Matrix,Matrix) -- contract a matrix by a matrix
  • contract(Matrix,Vector) -- see contract(Matrix,Matrix) -- contract a matrix by a matrix
  • contract(Number,Matrix) -- see contract(Matrix,Matrix) -- contract a matrix by a matrix
  • contract(RingElement,Matrix) -- see contract(Matrix,Matrix) -- contract a matrix by a matrix
  • contract(Vector,Matrix) -- see contract(Matrix,Matrix) -- contract a matrix by a matrix
  • degree(Matrix) (missing documentation)
  • degrees(Matrix) -- degrees of target and source
  • describe(Matrix) -- see describe -- real description
  • determinant(Matrix) -- see determinant -- determinant of a matrix
  • diagonalMatrix(Matrix) -- make a diagonal matrix from entries of a matrix
  • diff(Matrix,Vector) -- see diff(Matrix,Matrix) -- differentiate a matrix by a matrix
  • diff(Vector,Matrix) -- see diff(Matrix,Matrix) -- differentiate a matrix by a matrix
  • diff(Matrix,RingElement) -- differentiation
  • diff(RingElement,Matrix) -- differentiate each entry of a matrix
  • directSum(Matrix) -- see directSum -- direct sum of modules or maps
  • eagonNorthcott(Matrix) -- see eagonNorthcott -- Eagon-Northcott complex of a matrix of linear forms
  • eigenvalues(Matrix) -- see eigenvalues -- find eigenvalues of a matrix
  • eigenvectors(Matrix) -- see eigenvectors -- find eigenvectors of a matrix over real or complex numbers
  • entries(Matrix) -- see entries -- get the entries of a matrix
  • fittingIdeal(ZZ,Matrix) -- see fittingIdeal -- Fitting ideal of a module
  • forceGB(Matrix) -- see forceGB -- declare that the columns of a matrix are a Gröbner basis
  • gb(Matrix) -- see gb -- compute a Gröbner basis
  • gbRemove(Matrix) -- see gbRemove -- remove Gröbner basis
  • gbSnapshot(Matrix) -- see gbSnapshot -- the Gröbner basis matrix as so far computed
  • Matrix _ ZZ -- see generators of rings, ideals, and modules
  • groebnerBasis(Matrix) -- see groebnerBasis -- Gröbner basis, as a matrix
  • homology(Matrix,Matrix) -- homology of a pair of maps
  • homomorphism(Matrix) -- see homomorphism -- get the homomorphism from element of Hom
  • ideal(Matrix) -- make an ideal
  • image(Matrix) -- image of a map
  • indices(Matrix) -- see indices(RingElement) -- indices of variables occurring in a polynomial
  • inducedMap(Nothing,Module,Matrix) -- see inducedMap(Module,Module,Matrix) -- compute the induced map
  • inducedMap(Nothing,Nothing,Matrix) -- see inducedMap(Module,Module,Matrix) -- compute the induced map
  • inducesWellDefinedMap(Module,Module,Matrix) -- see inducesWellDefinedMap -- whether a map is well defined
  • inducesWellDefinedMap(Module,Nothing,Matrix) -- see inducesWellDefinedMap -- whether a map is well defined
  • inducesWellDefinedMap(Nothing,Module,Matrix) -- see inducesWellDefinedMap -- whether a map is well defined
  • inducesWellDefinedMap(Nothing,Nothing,Matrix) -- see inducesWellDefinedMap -- whether a map is well defined
  • installHilbertFunction(Matrix,RingElement) (missing documentation)
  • intersect(Matrix)
  • intersect(Matrix,Matrix)
  • intersect(Matrix,Matrix,Matrix,Matrix)
  • inverse(Matrix) -- compute the inverse
  • isHomogeneous(Matrix) -- see isHomogeneous -- whether something is homogeneous (graded)
  • isInjective(Matrix) -- see isInjective -- whether a map is injective
  • isIsomorphism(Matrix) -- see isIsomorphism -- whether a map is an isomorphism
  • isSurjective(Matrix) -- see isSurjective -- whether a map is surjective
  • isWellDefined(Matrix) -- see isWellDefined -- whether a map is well defined
  • kernel(Matrix) -- kernel of a matrix
  • koszul(Matrix) -- the Koszul complex
  • leadComponent(Matrix) -- see leadComponent -- the leading component(s) of a vector or matrix
  • lift(Matrix,type of CC_*,type of QQ) -- see lift -- lift to another ring
  • lift(Matrix,type of CC_*,type of RR_*) -- see lift -- lift to another ring
  • lift(Matrix,type of CC_*,type of ZZ) -- see lift -- lift to another ring
  • lift(Matrix,type of QQ,type of QQ) -- see lift -- lift to another ring
  • lift(Matrix,type of QQ,type of ZZ) -- see lift -- lift to another ring
  • lift(Matrix,type of RR_*,type of QQ) -- see lift -- lift to another ring
  • lift(Matrix,type of RR_*,type of ZZ) -- see lift -- lift to another ring
  • lift(Matrix,type of RRi_*,type of QQ) -- see lift -- lift to another ring
  • lift(Matrix,type of RRi_*,type of RR_*) -- see lift -- lift to another ring
  • lift(Matrix,type of RRi_*,type of ZZ) -- see lift -- lift to another ring
  • lift(Matrix,type of ZZ,type of ZZ) -- see lift -- lift to another ring
  • LUdecomposition(Matrix) -- see LUdecomposition -- compute the LU decomposition of a matrix
  • map(Ring,Matrix) -- make a ring map
  • map(Ring,Ring,Matrix) -- make a ring map
  • markedGB(Matrix,Matrix) -- make a marked Gröbner basis
  • Matrix ** RingElement
  • Matrix / Number -- scalar division
  • Matrix / RingElement -- see Matrix / Number -- scalar division
  • Matrix ^~ (missing documentation)
  • Matrix _ Sequence -- get entry of matrix
  • Matrix | Number -- see Matrix | Matrix -- join matrices horizontally
  • Matrix | RingElement -- see Matrix | Matrix -- join matrices horizontally
  • Number | Matrix -- see Matrix | Matrix -- join matrices horizontally
  • RingElement | Matrix -- see Matrix | Matrix -- join matrices horizontally
  • Matrix || Number -- see Matrix || Matrix -- join matrices vertically
  • Matrix || RingElement -- see Matrix || Matrix -- join matrices vertically
  • Number || Matrix -- see Matrix || Matrix -- join matrices vertically
  • RingElement || Matrix -- see Matrix || Matrix -- join matrices vertically
  • Matrix Vector (missing documentation)
  • Matrix % RingElement -- see methods for normal forms and remainder -- normal form of ring elements and matrices
  • RingElement % Matrix -- see methods for normal forms and remainder -- normal form of ring elements and matrices
  • minors(ZZ,Matrix) -- ideal generated by minors
  • monomialIdeal(Matrix) -- monomial ideal of lead monomials
  • monomials(Matrix) -- see monomials -- matrix of monomials in a ring element or matrix
  • mutableMatrix(Matrix) -- see mutableMatrix -- make a mutable matrix
  • newCoordinateSystem(PolynomialRing,Matrix) -- see newCoordinateSystem -- change variables
  • norm(InfiniteNumber,Matrix) -- see norm
  • norm(Matrix) -- see norm
  • norm(RR,Matrix) -- see norm
  • numColumns(Matrix) -- number of columns in a matrix or mutable matrix
  • numeric(Matrix) -- see numeric -- convert to floating point
  • numeric(ZZ,Matrix) -- see numeric -- convert to floating point
  • numRows(Matrix) -- number of rows in a matrix or mutable matrix
  • permanents(ZZ,Matrix) -- see permanents -- ideal generated by square permanents of a matrix
  • pfaffians(ZZ,Matrix) -- see pfaffians -- ideal generated by Pfaffians
  • pivots(Matrix) -- list of pivot locations of a matrix
  • precision(Matrix) -- see precision
  • preimage(Matrix,Module) -- see preimage -- preimage of a map
  • pullback(Matrix,Matrix) (missing documentation)
  • pushout(Matrix,Matrix) (missing documentation)
  • QRDecomposition(Matrix) -- see QRDecomposition -- compute a QR decomposition of a real matrix
  • rank(Matrix) -- see rank -- compute the rank
  • reducedRowEchelonForm(Matrix) -- see reducedRowEchelonForm -- compute the reduced row echelon form of a matrix or mutable matrix over a field
  • ring(Matrix) -- see ring -- get the associated ring of an object
  • rsort(Matrix) -- see rsort -- sort a list or matrix in reverse order
  • smithNormalForm(Matrix) -- smith normal form for a matrix over a PID
  • solve(Matrix,Matrix) -- see solve -- solve linear equation(s)
  • solve(Matrix,Vector) (missing documentation)
  • sort(Matrix) -- sort the columns of a matrix
  • sortColumns(Matrix) -- see sortColumns -- permutation giving sort order
  • source(Matrix) -- find the source module of matrix
  • submatrix(Matrix,VisibleList,VisibleList) -- see submatrix -- select part of a matrix
  • submatrix'(Matrix,Nothing,Nothing) -- see submatrix' -- exclude rows and/or columns of a matrix
  • submatrix'(Matrix,Nothing,VisibleList) -- see submatrix' -- exclude rows and/or columns of a matrix
  • submatrix'(Matrix,VisibleList) -- see submatrix' -- exclude rows and/or columns of a matrix
  • submatrix'(Matrix,VisibleList,Nothing) -- see submatrix' -- exclude rows and/or columns of a matrix
  • submatrix'(Matrix,VisibleList,VisibleList) -- see submatrix' -- exclude rows and/or columns of a matrix
  • submatrix(Matrix,VisibleList) -- select columns
  • submatrixByDegrees(Matrix,List,List) -- see submatrixByDegrees -- submatrix consisting of rows and columns in an interval or box of degrees
  • submatrixByDegrees(Matrix,Sequence,Sequence) -- see submatrixByDegrees -- submatrix consisting of rows and columns in an interval or box of degrees
  • submatrixByDegrees(Matrix,ZZ,ZZ) -- see submatrixByDegrees -- submatrix consisting of rows and columns in an interval or box of degrees
  • subquotient(Matrix,Matrix) -- see subquotient -- make a subquotient module
  • subquotient(Matrix,Nothing) -- see subquotient -- make a subquotient module
  • subquotient(Module,Matrix,Matrix) -- see subquotient -- make a subquotient module
  • subquotient(Module,Matrix,Nothing) -- see subquotient -- make a subquotient module
  • subquotient(Module,Nothing,Matrix) -- see subquotient -- make a subquotient module
  • subquotient(Nothing,Matrix) -- see subquotient -- make a subquotient module
  • substitute(Ideal,Matrix) -- see substitute -- substituting values for variables
  • substitute(Matrix,Option) -- see substitute -- substituting values for variables
  • substitute(Module,Matrix) -- see substitute -- substituting values for variables
  • substitute(RingElement,Matrix) -- see substitute -- substituting values for variables
  • substitute(Vector,Matrix) -- see substitute -- substituting values for variables
  • support(Matrix) -- see support -- list of variables occurring in a polynomial or matrix
  • SVD(Matrix) -- see SVD -- singular value decomposition of a matrix
  • symmetricAlgebra(Matrix) -- see symmetricAlgebra -- the symmetric algebra of a module
  • symmetricAlgebra(Nothing,Nothing,Matrix) -- see symmetricAlgebra -- the symmetric algebra of a module
  • symmetricAlgebra(Nothing,Ring,Matrix) -- see symmetricAlgebra -- the symmetric algebra of a module
  • symmetricAlgebra(Ring,Nothing,Matrix) -- see symmetricAlgebra -- the symmetric algebra of a module
  • symmetricAlgebra(Ring,Ring,Matrix) -- see symmetricAlgebra -- the symmetric algebra of a module
  • target(Matrix) -- find the target module of matrix
  • topCoefficients(Matrix) -- see topCoefficients -- first variable and its coefficient of a polynomial or matrix
  • trace(Matrix) -- trace of a matrix
  • truncate(InfiniteNumber,InfiniteNumber,Matrix) (missing documentation)
  • truncate(Nothing,InfiniteNumber,Matrix) (missing documentation)
  • truncate(ZZ,Matrix)
  • vector(Matrix) -- see vector -- make a vector
  • vector(Module,Matrix) -- see vector -- make a vector
  • vector(Ring,Matrix) -- see vector -- make a vector
  • vector(RingFamily,Matrix) -- see vector -- make a vector

For the programmer

The object Matrix is a type, with ancestor classes HashTable < Thing.


The source of this document is in Macaulay2Doc/doc_matrices.m2:104:0.