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
allNot implemented (virtual attribute) anyNot implemented (virtual attribute) argmaxNot implemented (virtual attribute) argminNot implemented (virtual attribute) argsortNot implemented (virtual attribute) astypeNot implemented (virtual attribute) byteswapNot implemented (virtual attribute) chooseNot implemented (virtual attribute) clipNot implemented (virtual attribute) compressNot implemented (virtual attribute) conjugateNot implemented (virtual attribute) copyNot implemented (virtual attribute) cumprodNot implemented (virtual attribute) cumsumNot implemented (virtual attribute) diagonalNot implemented (virtual attribute) dumpNot implemented (virtual attribute) dumpsNot implemented (virtual attribute) fillNot implemented (virtual attribute) flattenNot implemented (virtual attribute) getfieldNot implemented (virtual attribute) itemNot implemented (virtual attribute) itemsetNot implemented (virtual attribute) maxNot implemented (virtual attribute) meanNot implemented (virtual attribute) minNot implemented (virtual attribute) newbyteorder([new_order])Return a new dtypewith a different byte order.nonzeroNot implemented (virtual attribute) prodNot implemented (virtual attribute) ptpNot implemented (virtual attribute) putNot implemented (virtual attribute) ravelNot implemented (virtual attribute) repeatNot implemented (virtual attribute) reshapeNot implemented (virtual attribute) resizeNot implemented (virtual attribute) roundNot implemented (virtual attribute) searchsortedNot implemented (virtual attribute) setfieldNot implemented (virtual attribute) setflagsNot implemented (virtual attribute) sortNot implemented (virtual attribute) squeezeNot implemented (virtual attribute) stdNot implemented (virtual attribute) sumNot implemented (virtual attribute) swapaxesNot implemented (virtual attribute) takeNot implemented (virtual attribute) tofileNot implemented (virtual attribute) tolistNot implemented (virtual attribute) tostringNot implemented (virtual attribute) traceNot implemented (virtual attribute) transposeNot implemented (virtual attribute) varNot implemented (virtual attribute) viewNot implemented (virtual attribute) conj tobytes