[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: speed comparison of IDL, numPy, Matlab



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@ncep.noaa.gov                    Alexander Pope.