UserManual
matrix †
matrix module provides matrices.
Functions †
createMatrix(row, column, compo*1) †
A factory function to create an instance of Matrix or SquareMatrix.
parameters are checked as follows:
- First, if column are list form, return SquareMatrix of size row, coefficients are column list form.
- Or if row == column, return SquareMatrix of size row, coefficients are compo list form.
- If only row given, return SquareMatrix of size row, coefficients are all zero.
- Otherwise, return Matrix of size row x column, coefficients are compo list form.
list form is:
- list concatenated lists as row vectors, such as:
createMatrix(3,3,[1,2,3]+[4,5,6]+[7,8,9])
represent matrix form as follows:
1 2 3
4 5 6
7 8 9
- or you can pass straight list, i.e. [1, 2, 3, 4, 5, 6, 7, 8, 9] .
- if you abbreviate list, it will be deemed to all zero list.
unitMatrix(size) †
return unit matrix of size.
sumOfSubspaces(L, M) †
Given columns span a subspace m x n matrix L and M, return a matrix whose columns form a basis for sum of two subspaces.
intersectionOfSubspaces(L, M) †
Given columns span a subspace m x n matrix L and M, return a matrix whose columns form a basis for intersection of two subspaces.
Classes †
Subspace †
Exception Classes †
MatrixSizeError †
VectorsNotIndependent †
NoInverseImage †
NoInverse †
NoRing †