Previous Up Next

5.45.8 Hadamard product: hadamard product .*

The hadamard command can find the Hadamard product of two matrices; namely, the term-by-term product of the two matrices.
The product command can do the same thing (see also Section 5.40.28 for other uses of product).

The infixed operator .* also finds the Hadamard product, and also works on lists.

Examples


Previous Up Next