Universal functions (ufunc) — NumPy v1.13 Manual (original) (raw)
add(x1, x2, /[, out, where, casting, order, ...])
Add arguments element-wise.
subtract(x1, x2, /[, out, where, casting, ...])
Subtract arguments, element-wise.
multiply(x1, x2, /[, out, where, casting, ...])
Multiply arguments element-wise.
divide(x1, x2, /[, out, where, casting, ...])
Divide arguments element-wise.
logaddexp(x1, x2, /[, out, where, casting, ...])
Logarithm of the sum of exponentiations of the inputs.
logaddexp2(x1, x2, /[, out, where, casting, ...])
Logarithm of the sum of exponentiations of the inputs in base-2.
true_divide(x1, x2, /[, out, where, ...])
Returns a true division of the inputs, element-wise.
floor_divide(x1, x2, /[, out, where, ...])
Return the largest integer smaller or equal to the division of the inputs.
negative(x, /[, out, where, casting, order, ...])
Numerical negative, element-wise.
positive
(x, /[, out, where, casting, order, ...])
Numerical positive, element-wise.
power(x1, x2, /[, out, where, casting, ...])
First array elements raised to powers from second array, element-wise.
remainder(x1, x2, /[, out, where, casting, ...])
Return element-wise remainder of division.
mod(x1, x2, /[, out, where, casting, order, ...])
Return element-wise remainder of division.
fmod(x1, x2, /[, out, where, casting, ...])
Return the element-wise remainder of division.
divmod(x1, x2[, out1, out2], / [[, out, ...])
Return element-wise quotient and remainder simultaneously.
absolute(x, /[, out, where, casting, order, ...])
Calculate the absolute value element-wise.
fabs(x, /[, out, where, casting, order, ...])
Compute the absolute values element-wise.
rint(x, /[, out, where, casting, order, ...])
Round elements of the array to the nearest integer.
sign(x, /[, out, where, casting, order, ...])
Returns an element-wise indication of the sign of a number.
heaviside(x1, x2, /[, out, where, casting, ...])
Compute the Heaviside step function.
conj(x, /[, out, where, casting, order, ...])
Return the complex conjugate, element-wise.
exp(x, /[, out, where, casting, order, ...])
Calculate the exponential of all elements in the input array.
exp2(x, /[, out, where, casting, order, ...])
Calculate 2**p for all p in the input array.
log(x, /[, out, where, casting, order, ...])
Natural logarithm, element-wise.
log2(x, /[, out, where, casting, order, ...])
Base-2 logarithm of x.
log10(x, /[, out, where, casting, order, ...])
Return the base 10 logarithm of the input array, element-wise.
expm1(x, /[, out, where, casting, order, ...])
Calculate exp(x) - 1
for all elements in the array.
log1p(x, /[, out, where, casting, order, ...])
Return the natural logarithm of one plus the input array, element-wise.
sqrt(x, /[, out, where, casting, order, ...])
Return the positive square-root of an array, element-wise.
square(x, /[, out, where, casting, order, ...])
Return the element-wise square of the input.
cbrt(x, /[, out, where, casting, order, ...])
Return the cube-root of an array, element-wise.
reciprocal(x, /[, out, where, casting, ...])
Return the reciprocal of the argument, element-wise.