[SciPy-User] Numpy array: row/column scale?

Nico Schlömer nico.schloemer at gmail.com
Sat Oct 16 07:05:28 EDT 2010


Hi all,

I've got this (100,3) array X and another array Y of length 3 , and
I'd like to do something like

for k in xrange(3):
    X[:,k] *= Y[k]

This seems little efficient, and I'm sure there's a more BLASified way
to do so. Right?

Cheers,
Nico



More information about the SciPy-User mailing list