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: Ttranspose
basebase object
datapointer to start of data
dtypeget array data-descriptor
flagsinteger value of flags
flata 1-d view of scalar
imagimaginary part of scalar
itemsizelength of one element in bytes
nbyteslength of item in bytes
ndimnumber of array dimensions
realreal part of scalar
shapetuple of array dimensions
sizenumber of elements in the gentype
stridestuple 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 dtypewith 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
