numpy.ndmath

Standard library module View source
function cumprod
cumprod(a, axis = None, dtype: type = NoneType, out = None)
function cumsum
cumsum(a, axis = None, dtype: type = NoneType, out = None)
function diff
diff(a, axis: int = -1, n: int = 1, append = None, prepend = None)
function gradient
gradient(f, *varargs, axis = None, edge_order: int = 1)
function ediff1d
ediff1d(ary, to_begin = None, to_end = None)
function cross
cross(a, b, axisa: int = -1, axisb: int = -1, axisc: int = -1, axis = None)
function trapz
trapz(y, x = None, dx = 1.0, axis: int = -1)
function convolve
convolve(v, a, mode: str = "full")
variable add
add = BinaryUFunc(operator.add, "add", 0)
variable subtract
subtract = BinaryUFunc(operator.sub, "subtract")
variable multiply
multiply = BinaryUFunc(operator.mul, "multiply", 1)
variable divide
divide = BinaryUFunc(_true_divide, "divide")
variable true_divide
true_divide = divide
variable logaddexp
logaddexp = BinaryUFunc(_logaddexp, "logaddexp")
variable logaddexp2
logaddexp2 = BinaryUFunc(_logaddexp2, "logaddexp2")
variable floor_divide
floor_divide = BinaryUFunc(_floor_divide, "floor_divide")
variable negative
negative = UnaryUFunc(operator.neg, "negative")
variable positive
positive = UnaryUFunc(operator.pos, "positive")
variable power
power = BinaryUFunc(operator.pow, "power")
variable remainder
remainder = BinaryUFunc(_remainder, "remainder")
variable mod
mod = remainder
variable fmod
fmod = BinaryUFunc(_fmod, "fmod")
variable absolute
absolute = UnaryUFunc(operator.abs, "absolute")
variable abs
abs = absolute
variable fabs
fabs = UnaryUFunc(_fabs, "fabs")
variable rint
rint = UnaryUFunc(_rint, "rint")
variable sign
sign = UnaryUFunc(_sign, "sign")
variable heaviside
heaviside = BinaryUFunc(_heaviside, "heaviside")
variable conjugate
conjugate = UnaryUFunc(_conj, "conjugate")
variable conj
conj = conjugate
variable exp
exp = UnaryUFunc(_exp, "exp")
variable exp2
exp2 = UnaryUFunc(_exp2, "exp2")
variable log
log = UnaryUFunc(_log, "log")
variable log2
log2 = UnaryUFunc(_log2, "log2")
variable log10
log10 = UnaryUFunc(_log10, "log10")
variable expm1
expm1 = UnaryUFunc(_expm1, "expm1")
variable log1p
log1p = UnaryUFunc(_log1p, "log1p")
variable sqrt
sqrt = UnaryUFunc(_sqrt, "sqrt")
variable square
square = UnaryUFunc(_square, "square")
variable cbrt
cbrt = UnaryUFunc(_cbrt, "cbrt")
variable reciprocal
reciprocal = UnaryUFunc(_reciprocal, "reciprocal")
variable gcd
gcd = BinaryUFunc(_gcd, "gcd", 0)
variable lcm
lcm = BinaryUFunc(_lcm, "lcm")
variable sin
sin = UnaryUFunc(_sin, "sin")
variable cos
cos = UnaryUFunc(_cos, "cos")
variable tan
tan = UnaryUFunc(_tan, "tan")
variable arcsin
arcsin = UnaryUFunc(_arcsin, "arcsin")
variable arccos
arccos = UnaryUFunc(_arccos, "arccos")
variable arctan
arctan = UnaryUFunc(_arctan, "arctan")
variable arctan2
arctan2 = BinaryUFunc(_arctan2, "arctan2")
variable hypot
hypot = BinaryUFunc(_hypot, "hypot")
variable sinh
sinh = UnaryUFunc(_sinh, "sinh")
variable cosh
cosh = UnaryUFunc(_cosh, "cosh")
variable tanh
tanh = UnaryUFunc(_tanh, "tanh")
variable arcsinh
arcsinh = UnaryUFunc(_arcsinh, "arcsinh")
variable arccosh
arccosh = UnaryUFunc(_arccosh, "arccosh")
variable arctanh
arctanh = UnaryUFunc(_arctanh, "arctanh")
variable deg2rad
deg2rad = UnaryUFunc(_deg2rad, "deg2rad")
variable radians
radians = UnaryUFunc(_deg2rad, "radians")
variable rad2deg
rad2deg = UnaryUFunc(_rad2deg, "rad2deg")
variable degrees
degrees = UnaryUFunc(_rad2deg, "degrees")
variable bitwise_and
bitwise_and = BinaryUFunc(operator.and_, "bitwise_and")
variable bitwise_or
bitwise_or = BinaryUFunc(operator.or_, "bitwise_or")
variable bitwise_xor
bitwise_xor = BinaryUFunc(operator.xor, "bitwise_xor")
variable invert
invert = UnaryUFunc(operator.invert, "invert")
variable left_shift
left_shift = BinaryUFunc(operator.lshift, "left_shift")
variable right_shift
right_shift = BinaryUFunc(operator.rshift, "right_shift")
variable greater
greater = BinaryUFunc(operator.gt, "greater")
variable greater_equal
greater_equal = BinaryUFunc(operator.ge, "greater_equal")
variable less
less = BinaryUFunc(operator.lt, "less")
variable less_equal
less_equal = BinaryUFunc(operator.le, "less_equal")
variable not_equal
not_equal = BinaryUFunc(operator.ne, "not_equal")
variable equal
equal = BinaryUFunc(operator.eq, "equal")
variable logical_and
logical_and = BinaryUFunc(_logical_and, "logical_and")
variable logical_or
logical_or = BinaryUFunc(_logical_or, "logical_or")
variable logical_xor
logical_xor = BinaryUFunc(_logical_xor, "logical_xor")
variable logical_not
logical_not = UnaryUFunc(_logical_not, "logical_not")
variable maximum
maximum = BinaryUFunc(_maximum, "maximum")
variable minimum
minimum = BinaryUFunc(_minimum, "minimum")
variable fmax
fmax = BinaryUFunc(_fmax, "fmax")
variable fmin
fmin = BinaryUFunc(_fmin, "fmin")
variable isfinite
isfinite = UnaryUFunc(_isfinite, "isfinite")
variable isinf
isinf = UnaryUFunc(_isinf, "isinf")
variable isnan
isnan = UnaryUFunc(_isnan, "isnan")
variable isnat
isnat = UnaryUFunc(_isnat, "isnat")
variable signbit
signbit = UnaryUFunc(_signbit, "signbit")
variable copysign
copysign = BinaryUFunc(_copysign, "copysign")
variable nextafter
nextafter = BinaryUFunc(_nextafter, "nextafter")
variable spacing
spacing = UnaryUFunc(_spacing, "spacing")
variable modf
modf = UnaryUFunc2(_modf, "modf")
variable ldexp
ldexp = BinaryUFunc(_ldexp, "ldexp")
variable frexp
frexp = UnaryUFunc2(_frexp, "frexp")
variable floor
floor = UnaryUFunc(_floor, "floor")
variable ceil
ceil = UnaryUFunc(_ceil, "ceil")
variable trunc
trunc = UnaryUFunc(_trunc, "trunc")
function i0
i0(x)
function sinc
sinc(x)
function nancumprod
nancumprod(a, axis = None, dtype: type = NoneType, out = None)
function nancumsum
nancumsum(a, axis = None, dtype: type = NoneType, out = None)
class ndarray
@extend
class ndarray[dtype, ndim]
Methods 2
cumprod
cumprod(self, axis = None, dtype: type = NoneType, out = None)
cumsum
cumsum(self, axis = None, dtype: type = NoneType, out = None)
Special methods 1
__abs__
@inline
__abs__(self)