MatrixInterface module¶
Interface for the Matrix representation.
-
class
MatrixInterface.Matrix(n, elements)¶ Bases:
abc.ABCDefines the Matrix.
-
apply(v)¶
-
abstract
multiply(m)¶
-
-
class
MatrixInterface.MatrixElement(i, j, val)¶ Bases:
objectGets Matrix Element.
-
class
MatrixInterface.Vector(elements)¶ Bases:
object-
outer(other_vec)¶ Returns the outer (kronecker) product of two vectors
- Parameters
other_vec – (array) The other Vector in the multiplication
- Returns
(array) The final vector product
-
-
class
MatrixInterface.explicit(n, elements)¶ Bases:
MatrixInterface.Matrix-
enumerator()¶
-
multiply(a, b)¶
-