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: