runlmc.linalg.matrix module¶
-
class
runlmc.linalg.matrix.Matrix(n, m)[source]¶ Bases:
objectAn abstract class defining the interface for the necessary sparse matrix operations.
All matrices are assumed real.
Parameters: - n – number of rows in this matrix
- m – number of columns in this matrix
Raises: ValueError – if n < 1 or m < 1
-
as_numpy()[source]¶ Returns: numpy matrix equivalent, as a 2D numpy.ndarray
-
matmat(X)[source]¶ Multiply a matrix \(X\) by this matrix, \(K\), yielding \(KX\). By default, this just repeatedly calls
matvec().Parameters: X – a (possibly rectangular) dense matrix. Returns: the matrix-matrix product