
Nov. 3, 2000
9:15 p.m.
Sorry I forgot to mention that these two operations can be done inplace, but the result can not be stored inplace, as the shape is changing. So you need to live with one copy, if your array a is of type 'i'.
a=array([1,2,3,4]) multiply(a,bits,a) array([ 1, 512, 196608, 67108864]) a array([ 1, 512, 196608, 67108864])
HTH, __Janko multiply(array([1,2,3,4]),bits,a)