[SciPy-user] Question about slicing
hgamboa at gmail.com
Fri Jan 20 06:16:17 CST 2006
In the code below the commented line makes numpy complains. The
intended result is produced by getting the indexes with where. If I
Am I asking too much with slicing or it should simply work?
Thanks in advance.
from numpy import *
r=b[i] #works fine but only in the first axis
#b[:,i] <- IndexError: arrays used as indices must be of integer type
More information about the SciPy-user