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
-
transpose
-
base
-
base object
-
data
-
pointer to start of data
-
dtype
-
get array data-descriptor
-
flags
-
integer value of flags
-
flat
-
a 1-d view of scalar
-
imag
-
imaginary part of scalar
-
itemsize
-
length of one element in bytes
-
nbytes
-
length of item in bytes
-
ndim
-
number of array dimensions
-
real
-
real part of scalar
-
shape
-
tuple of array dimensions
-
size
-
number of elements in the gentype
-
strides
-
tuple of bytes steps in each dimension
Methods
all
()Not implemented (virtual attribute) any
()Not implemented (virtual attribute) argmax
()Not implemented (virtual attribute) argmin
()Not implemented (virtual attribute) argsort
()Not implemented (virtual attribute) astype
()Not implemented (virtual attribute) byteswap
()Not implemented (virtual attribute) choose
()Not implemented (virtual attribute) clip
()Not implemented (virtual attribute) compress
()Not implemented (virtual attribute) conjugate
()Not implemented (virtual attribute) copy
()Not implemented (virtual attribute) cumprod
()Not implemented (virtual attribute) cumsum
()Not implemented (virtual attribute) diagonal
()Not implemented (virtual attribute) dump
()Not implemented (virtual attribute) dumps
()Not implemented (virtual attribute) fill
()Not implemented (virtual attribute) flatten
()Not implemented (virtual attribute) getfield
()Not implemented (virtual attribute) item
()Not implemented (virtual attribute) itemset
()Not implemented (virtual attribute) max
()Not implemented (virtual attribute) mean
()Not implemented (virtual attribute) min
()Not implemented (virtual attribute) newbyteorder
([new_order])Return a new dtype
with a different byte order.nonzero
()Not implemented (virtual attribute) prod
()Not implemented (virtual attribute) ptp
()Not implemented (virtual attribute) put
()Not implemented (virtual attribute) ravel
()Not implemented (virtual attribute) repeat
()Not implemented (virtual attribute) reshape
()Not implemented (virtual attribute) resize
()Not implemented (virtual attribute) round
()Not implemented (virtual attribute) searchsorted
()Not implemented (virtual attribute) setfield
()Not implemented (virtual attribute) setflags
()Not implemented (virtual attribute) sort
()Not implemented (virtual attribute) squeeze
()Not implemented (virtual attribute) std
()Not implemented (virtual attribute) sum
()Not implemented (virtual attribute) swapaxes
()Not implemented (virtual attribute) take
()Not implemented (virtual attribute) tofile
()Not implemented (virtual attribute) tolist
()Not implemented (virtual attribute) tostring
()Not implemented (virtual attribute) trace
()Not implemented (virtual attribute) transpose
()Not implemented (virtual attribute) var
()Not implemented (virtual attribute) view
()Not implemented (virtual attribute) conj tobytes -
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.generic.html