Previous Up Next

5.45.8  Hadamard product : hadamard product

hadamard (or product) takes as arguments two matrices A and B of the same size.
hadamard (or product) returns the matrix where each term is the term by term product of A and B.
Input :

hadamard([[1, 2],[3,4]],[[5, 6],[7, 8]])

Output :


See also 5.40.31 and 5.45.6 for product.

Previous Up Next