The class is for matrix.
This constructor determines the class automatically like createMatrix.
The row size of the matrix.
The column size of the matrix.
The coefficient ring of the matrix.
Return the matrix whose elements is applied function to. (new in 0.90.0)
Apply function from upper-left to lower-right, so as to reduce the iterable to a single value.(new in 0.90.0)
create a copy of self (other instance).
Return the transpose of the matrix.
Return the row * column block matrix from the (i, j)-element. (new in 0.90.0)
Return submatrix deleted I-th row and J-th column. If I and J is a sequence, return the submatrix composed of the rows and the colums assigned by I and J, respectively.
operator | explanation |
M == N | Return whether M and N are equal or not. |
M != N | Return whether M and N are different or not. |
M[i, j] | Return the coefficient of i-th row, j-th column term of matrix M. |
M[i] | Return the vector of i-th column term of matrix M. |
M[i, j] = c | Replace the coefficient of i-th row, j-th column term of matrix M by c. |
M[j] = c | Replace the vector of i-th column term of matrix M by vector c. |
c in M | Check whether some element of M equals c. |
repr(M) | Return the repr string of the matrix M. string represents list concatenated row vector lists. |
str(M) | Return the str string of the matrix M. |