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

all
any
argmax
argmin
argsort
astype
byteswap
choose
clip
compress
conj() Return the complex conjugate, element-wise.
conjugate() Return the complex conjugate, element-wise.
copy
cumprod
cumsum
diagonal
dump
dumps
fill
flatten
getfield
item
itemset
max
mean
min
newbyteorder
nonzero
prod
ptp
put
ravel
repeat
reshape
resize
round
searchsorted
setfield
setflags
sort
squeeze
std
sum
swapaxes
take
tofile
tolist
tostring
trace
transpose
var
view

Previous topic

numpy.generic.__array_wrap__

Next topic

numpy.all

This Page