[Numpy-discussion] structured array comparisons?

Stéfan van der Walt stefan@sun.ac...
Sun Mar 8 08:15:21 CDT 2009


2009/3/7 Matthew Brett <matthew.brett@gmail.com>:
> If there are two arrays, it blows up, even comparing to itself:
>
> In [49]: a = np.zeros((), dtype=[('f1', 'f8', 8),('f2', 'f8', 2)])

I wonder what the best approach would be.  To return a structured
array with the same fields, but dtype changed to bool?

Stéfan


More information about the Numpy-discussion mailing list