numpy.generic¶
-
class
numpy.
generic
[source]¶ 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.- Attributes
T
Scalar attribute identical to the corresponding array attribute.
base
Scalar attribute identical to the corresponding array attribute.
data
Pointer to start of data.
dtype
Get array data-descriptor.
flags
The integer value of flags.
flat
A 1-D view of the scalar.
imag
The imaginary part of the scalar.
itemsize
The length of one element in bytes.
nbytes
The length of the scalar in bytes.
ndim
The number of array dimensions.
real
The real part of the scalar.
shape
Tuple of array dimensions.
size
The number of elements in the gentype.
strides
Tuple of bytes steps in each dimension.
Methods
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
newbyteorder
([new_order])Return a new
dtype
with a different byte order.Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
Scalar method identical to the corresponding array attribute.
conj
tobytes