Definition VSM. Vector Space of \(m\times n\) Matrices.
The vector space \(M_{mn}\) is the set of all \(m\times n\) matrices with entries from the set of complex numbers.
MatrixSpace(R, m, n)
where R
is a number system and m
and n
are the number of rows and number of columns, respectively. This object does not have much functionality defined in Sage. Its main purposes are to provide a parent for matrices, and to provide another way to create matrices. The two matrix operations just defined (addition and scalar multiplication) are implemented as you would expect. In the example below, we create two matrices in \(M_{23}\) from just a list of 6 entries, by coercing the list into a matrix by using the relevant matrix space as if it were a function. Then we can perform the basic operations of matrix addition (Definition MA) and matrix scalar multiplication (Definition MSM).37
in the following expression is coerced to \(37\) times an identity matrix of the proper size..conjugate_transpose()
. Here are some straightforward examples.==
) between matrices as the implementation of matrix equality (Definition ME).RDF
and CDF
, it can be tricky to decide if two numbers are equal, or if a very small number is zero or not. In these situations Sage allows us to specify a “tolerance” — the largest number that can be effectively considered zero. Consider the following: