[Numpy-discussion] Element-by-element matrix multiplication

Robert Kern robert.kern at gmail.com
Wed Jun 21 13:21:42 EDT 2006


Keith Goodman wrote:
> The NumPy for Matlab Users page suggests mat(a.A * b.A) for
> element-by-element matrix multiplication. I think it would be helpful
> to also include multiply(a, b).
> 
> a.*b
> 
> mat(a.A * b.A) or
> multiply(a, b)

It is a wiki page. You may edit it yourself without needing to ask permission.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco





More information about the NumPy-Discussion mailing list