class documentation

class _concrete_ndptr(_ndptr): (source)

View In Hierarchy

Like _ndptr, but with _shape_ and _dtype_ specified.

Notably, this means the pointer has enough information to reconstruct the array, which is not generally true.

Property contents Get an ndarray viewing the data pointed to by this pointer.
Method _check_retval_ This method is called when this class is used as the .restype attribute for a shared-library function, to automatically wrap the pointer into an array.

Inherited from _ndptr:

Class Method from_param Undocumented

Get an ndarray viewing the data pointed to by this pointer.

This mirrors the contents attribute of a normal ctypes pointer

def _check_retval_(self): (source)

This method is called when this class is used as the .restype attribute for a shared-library function, to automatically wrap the pointer into an array.