hadamard

# Import statement

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

Hadamard product of a list of matrices.

Parameters
matriceslist[np.ndarray]

List of matrices. All matrices should be of the same shape.

skip_matrixint

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

reversebool

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

Returns
resultnp.ndarray

The result of the Hadamard product is a matrix of the same shape as every matrix in matrices