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

2006-06-21 Thread Bill Baxter
Actually I think using mat() (just an alias for the matrix constructor) is a bad way to do it.  That mat() (and most others on that page) should probably be replaced with asmatrix() to avoid the copy.--bb On 6/22/06, Keith Goodman <[EMAIL PROTECTED]> wrote: On 6/21/06, Robert Kern <[EMAIL PROTECTED

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

2006-06-21 Thread Keith Goodman
On 6/21/06, Robert Kern <[EMAIL PROTECTED]> wrote: > 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 > > multipl

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

2006-06-21 Thread Robert Kern
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

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

2006-06-21 Thread Keith Goodman
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) ___ Numpy-discussion mailing list Numpy-discussion@