runlmc.linalg.kronecker module¶
-
class
runlmc.linalg.kronecker.Kronecker(A, B)[source]¶ Bases:
runlmc.linalg.matrix.MatrixCreates a class with a parsimonious representation of a Kronecker product of two
runlmc.linalg.matrix.Matrixinstances. For the Kronecker matrix \(K=A\otimes B\), the \(ij\)-th block entry is \(a_{ij}B\).\(K\) is PSD if \(A,B\) are.
The implementation is based off of Gilboa, Saatçi, and Cunningham (2015).
Creates a
Kroneckermatrix.Parameters: - A – the first matrix
- B – the second matrix
-
as_numpy()[source]¶ Returns: numpy matrix equivalent, as a 2D numpy.ndarray