Search code examples
matrixlinear-algebramatrix-multiplicationmaxima

In Maxima, how do I get the elementwise (Hadamard) product of two matrices?


In Maxima, how do I get the elementwise (Hadamard) product of two matrices?

e.g

a b
c d

* 

e f
g h 

->

a*e b*f
c*e d*h

Solution

  • A*B is the elementwise product, as opposed to the matrix product, A.B