numpy.generic

class numpy.generic

Base class for numpy scalar types.

Class from which most (all?) numpy scalar types are derived. For consistency, exposes the same API as ndarray, despite many consequent attributes being either “get-only,” or completely irrelevant. This is the class from which it is strongly suggested users should derive custom scalar types.

Methods

Previous topic

numpy.generic.__array_wrap__

Next topic

numpy.generic.__array__

This Page