discretize.utils.kron3#

discretize.utils.kron3(A, B, C)[source]#

Compute kronecker products between 3 sparse matricies.

Where \(\otimes\) denotes the Kronecker product and A, B and C are sparse matrices, this function outputs \((A \otimes B) \otimes C\).

Parameters:
A, B, Cscipy.sparse.spmatrix

Sparse matrices.

Returns:
scipy.sparse.csr_matrix

Kroneker between the 3 sparse matrices.