[Numpy-discussion] np.void from 0d array + subclassing

Francesc Alted faltet@pytables....
Thu Dec 17 09:16:25 CST 2009


A Thursday 17 December 2009 15:16:29 Pierre GM escrigué:
> All,
> * What is the most efficient way to get a np.void object from a 0d
>  structured ndarray ?

I normally use `PyArray_GETITEM` C macro for general n-d structured arrays.  I 
suppose that this will work with 0-d arrays too.

-- 
Francesc Alted


More information about the NumPy-Discussion mailing list