speed comparison of IDL, numPy, Matlab

Omur Bas obas at mathworks.com
Mon Feb 5 15:43:29 EST 2001


Try

>> A.*B

for element-by-element multiplication.

Omur
>
> P.S. BTW, in Matlab, how do you simply multiply the corresponding matrix
elements? (i.e.
> not a matrix multiply).
>
>
> --
> Paul van Delst                 A little learning is a dangerous thing;
> CIMSS @ NOAA/NCEP              Drink deep, or taste not the Pierian
spring;
> Ph:    (301) 763-8000 x7274    There shallow draughts intoxicate the
brain,
> Fax:   (301) 763-8545          And drinking largely sobers us again.
> Email: pvandelst at ncep.noaa.gov                    Alexander Pope.





More information about the Python-list mailing list