jax.numpy.generic#
- class jax.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.
- __init__()#
Methods
__init__
()all
Scalar method identical to the corresponding array attribute.
any
Scalar method identical to the corresponding array attribute.
argmax
Scalar method identical to the corresponding array attribute.
argmin
Scalar method identical to the corresponding array attribute.
argsort
Scalar method identical to the corresponding array attribute.
astype
Scalar method identical to the corresponding array attribute.
byteswap
Scalar method identical to the corresponding array attribute.
choose
Scalar method identical to the corresponding array attribute.
clip
Scalar method identical to the corresponding array attribute.
compress
Scalar method identical to the corresponding array attribute.
conj
conjugate
Scalar method identical to the corresponding array attribute.
copy
Scalar method identical to the corresponding array attribute.
cumprod
Scalar method identical to the corresponding array attribute.
cumsum
Scalar method identical to the corresponding array attribute.
diagonal
Scalar method identical to the corresponding array attribute.
dump
Scalar method identical to the corresponding array attribute.
dumps
Scalar method identical to the corresponding array attribute.
fill
Scalar method identical to the corresponding array attribute.
flatten
Scalar method identical to the corresponding array attribute.
getfield
Scalar method identical to the corresponding array attribute.
item
Scalar method identical to the corresponding array attribute.
max
Scalar method identical to the corresponding array attribute.
mean
Scalar method identical to the corresponding array attribute.
min
Scalar method identical to the corresponding array attribute.
nonzero
Scalar method identical to the corresponding array attribute.
prod
Scalar method identical to the corresponding array attribute.
put
Scalar method identical to the corresponding array attribute.
ravel
Scalar method identical to the corresponding array attribute.
repeat
Scalar method identical to the corresponding array attribute.
reshape
Scalar method identical to the corresponding array attribute.
resize
Scalar method identical to the corresponding array attribute.
round
Scalar method identical to the corresponding array attribute.
searchsorted
Scalar method identical to the corresponding array attribute.
setfield
Scalar method identical to the corresponding array attribute.
setflags
Scalar method identical to the corresponding array attribute.
sort
Scalar method identical to the corresponding array attribute.
squeeze
Scalar method identical to the corresponding array attribute.
std
Scalar method identical to the corresponding array attribute.
sum
Scalar method identical to the corresponding array attribute.
swapaxes
Scalar method identical to the corresponding array attribute.
take
Scalar method identical to the corresponding array attribute.
to_device
tobytes
tofile
Scalar method identical to the corresponding array attribute.
tolist
Scalar method identical to the corresponding array attribute.
tostring
Scalar method identical to the corresponding array attribute.
trace
Scalar method identical to the corresponding array attribute.
transpose
Scalar method identical to the corresponding array attribute.
var
Scalar method identical to the corresponding array attribute.
view
Scalar method identical to the corresponding array attribute.
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.
device
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.
itemset
itemsize
The length of one element in bytes.
nbytes
ndim
The number of array dimensions.
newbyteorder
ptp
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.