khatri_rao

# Import statement

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

Khatri-Rao product of a list of matrices.

Parameters
matriceslist[np.ndarray]

List of matrices. Each matrix should have the same number of columns

skip_matrixint

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

reversebool

If True, perform khatri-rao product on the list of matrices in the reversed order

Returns
resultnp.ndarray

The result of the Khatri-Rao product is a matrix of shape ()