kronecker

# Import statement

from hottbox.core import kronecker
kronecker(matrices, skip_matrix=None, reverse=False)[source]

Kronecker product of a list of matrices.

Parameters
matriceslist[np.ndarray]

List of matrices.

skip_matrixint

Index of a matrix (from the matrices) to be skipped. By default none are skipped

reversebool

If True, perform Kronecker product on the list of matrices in the reversed order

Returns
resultnp.ndarray

The result of the Kronecker product is a matrix of shape (prod(n_rows), prod(n_columns) where prod(n_rows) = prod([m.shape[0] for m in matrices]) and prod(n_columns) = prod([m.shape[1] for m in matrices])