[Numpy-discussion] Addressing arrays
malcolm.reynolds at gmail.com
Mon Jan 30 10:26:59 EST 2012
On Mon, Jan 30, 2012 at 3:25 PM, Ted To <rainexpected at theo.to> wrote:
> Is there some straightforward way to access an array by values across a
> subset of its dimensions? For example, if I have a three dimensional
> array a=(x,y,z), can I look at the values of z given particular values
> for x and y?
a[x, y, :] should get you what you want I believe..
More information about the NumPy-Discussion