On Wed, Jan 25, 2012 at 11:33 AM, wrote:
> that's what I would try:
>
b = a.view(dtype=[('i', '>>> ('i2', '>>> b['fl']
> array([(2.0, 3.0), (8.0, 9.0), (123.41, 7.0), (10.0, 11.0),
> (14.0, 15.0)],
> dtype=[('f1', '>>> b['fl'][2]= (200, 500)
a
> array([(1, 2.0, 3.
On Wed, Jan 25, 2012 at 2:27 PM, Chris Barker wrote:
> HI folks,
>
> Is there a way to get a view of a subset of a structured array? I know
> that an arbitrary subset will not fit into the numpy "strides"offsets"
> model, but some will, and it would be nice to have a view:
>
> For example, here we
HI folks,
Is there a way to get a view of a subset of a structured array? I know
that an arbitrary subset will not fit into the numpy "strides"offsets"
model, but some will, and it would be nice to have a view:
For example, here we have a stuctured array:
In [56]: a
Out[56]:
array([(1, 2.0, 3.0,