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

denis denis-bz-gg at t-online.de
Fri Feb 1 08:24:06 EST 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