Mathematical Functions#
Trigonometric functions#
Trigonometric sine, element-wise. |
|
Cosine element-wise. |
|
Compute tangent element-wise. |
|
Inverse sine, element-wise. |
|
Trigonometric inverse cosine, element-wise. |
|
Trigonometric inverse tangent, element-wise. |
|
Given the "legs" of a right triangle, return its hypotenuse. |
|
Element-wise arc tangent of |
|
Convert angles from radians to degrees. |
|
Convert angles from degrees to radians. |
|
Convert angles from degrees to radians. |
|
Convert angles from radians to degrees. |
Hyperbolic functions#
Hyperbolic sine, element-wise. |
|
Hyperbolic cosine, element-wise. |
|
Compute hyperbolic tangent element-wise. |
|
Inverse hyperbolic sine element-wise. |
|
Inverse hyperbolic cosine, element-wise. |
|
Inverse hyperbolic tangent element-wise. |
Rounding#
Evenly round to the given number of decimals. |
|
Evenly round to the given number of decimals. |
|
Round elements of the tensor to the nearest integer. |
|
Round to nearest integer towards zero. |
|
Return the floor of the input, element-wise. |
|
Return the ceiling of the input, element-wise. |
|
Return the truncated value of the input, element-wise. |
Sums, products, differences#
Return the product of tensor elements over a given axis. |
|
Sum of tensor elements over a given axis. |
|
Return the product of array elements over a given axis treating Not a Numbers (NaNs) as ones. |
|
Return the sum of array elements over a given axis treating Not a Numbers (NaNs) as zero. |
Exponential and logarithms#
Calculate the exponential of all elements in the input tensor. |
|
Calculate |
|
Calculate 2**p for all p in the input tensor. |
|
Natural logarithm, element-wise. |
|
Return the base 10 logarithm of the input tensor, element-wise. |
|
Base-2 logarithm of x. |
|
Return the natural logarithm of one plus the input tensor, element-wise. |
|
Logarithm of the sum of exponentiations of the inputs. |
|
Logarithm of the sum of exponentiations of the inputs in base-2. |
Other special functions#
Modified Bessel function of the first kind, order 0. |
|
Return the sinc function. |
Floating point routines#
Returns element-wise True where signbit is set (less than zero). |
|
Change the sign of x1 to that of x2, element-wise. |
|
Decompose the elements of x into mantissa and twos exponent. |
|
Returns x1 * 2**x2, element-wise. |
|
Return the next floating-point value after x1 towards x2, element-wise. |
|
Return the distance between x and the nearest adjacent number. |
Arithmetic operations#
Add arguments element-wise. |
|
Return the reciprocal of the argument, element-wise. |
|
Numerical positive, element-wise. |
|
Numerical negative, element-wise. |
|
Multiply arguments element-wise. |
|
Divide arguments element-wise. |
|
First tensor elements raised to powers from second tensor, element-wise. |
|
Subtract arguments, element-wise. |
|
Returns a true division of the inputs, element-wise. |
|
Return the largest integer smaller or equal to the division of the inputs. |
|
First tensor elements raised to powers from second array, element-wise. |
|
Return the element-wise remainder of division. |
|
Return element-wise remainder of division. |
|
Return the fractional and integral parts of a tensor, element-wise. |
|
Return element-wise remainder of division. |
Handling complex numbers#
Return the angle of the complex argument. |
|
Return the real part of the complex argument. |
|
Return the imaginary part of the complex argument. |
|
Return the complex conjugate, element-wise. |
Miscellaneous#
Return the positive square-root of an tensor, element-wise. |
|
Return the cube-root of an tensor, element-wise. |
|
Return the element-wise square of the input. |
|
Calculate the absolute value element-wise. |
|
Returns an element-wise indication of the sign of a number. |
|
Element-wise maximum of tensor elements. |
|
Element-wise minimum of tensor elements. |
|
Element-wise maximum of array elements. |
|
Element-wise minimum of array elements. |
|
Replace nan with zero and inf with large finite numbers. |