[Numpy-discussion] faster Array.take( floatindices.astype(int) ) ?

denis denis-bz-gg@t-online...
Fri Feb 1 07:24:06 CST 2013


Folks,
  is there a way to speed up  Array.take( floatindices.astype(int) ) ?
astype(int) makes a copy, floor() returns floats.

(Is there a wiki of NumPy one-liners / various tricks ?
would sure beat googling.)

Thanks,
cheers
  -- denis



More information about the NumPy-Discussion mailing list