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

Francesc Alted faltet at pytables.org
Thu Dec 17 10:16:25 EST 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