Mathematical functions (mygrad.math
)#
Trigonometric functions#
|
Trigonometric sine, element-wise. |
|
Trigonometric cosine, element-wise. |
|
Trigonometric tangent, element-wise. |
|
Inverse sine, element-wise. |
|
Inverse cosine, element-wise. |
|
Inverse tangent, element-wise. |
|
Element-wise arc tangent of |
Hyperbolic functions#
|
Hyperbolic sine, element-wise. |
|
Hyperbolic cosine, element-wise. |
|
Hyperbolic tangent, element-wise. |
|
Inverse hyperbolic sine, element-wise. |
|
Inverse hyperbolic cosine, element-wise. |
|
Inverse hyperbolic tangent, element-wise. |
Sums, products, differences#
|
Return the product of array elements over given axes. |
|
Sum of tensor elements over a given axis. |
|
Return the cumulative product of elements along a given axis. |
|
Return the cumulative sum of the elements along a given axis. |
|
Mean of tensor elements over a given axis. |
|
Compute the variance along the specified axis. |
|
Compute the standard deviation along the specified axis. |
|
Return the maximum of a tensor or maximum along its axes. |
|
Return the minimum of a tensor or minimum along its axes. |
|
Return the maximum of a tensor or maximum along its axes. |
|
Return the minimum of a tensor or minimum along its axes. |
Exponents 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 applied elementwise to the tensor. |
|
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#
|
|
|
|
|
|
Arithmetic operations#
|
Add the arguments element-wise. |
|
Return the reciprocal of the argument element-wise. |
|
Returns a copy of the tensor. |
|
Negates the tensor element-wise. |
|
Multiply the arguments element-wise. |
alias of |
|
|
First tensor elements raised to powers from second tensor, element-wise. |
|
Subtract the arguments element-wise. |
Miscellaneous#
|
Clip (limit) the values in an array. |
|
The square root, elementwise. |
|
The cube root elementwise. |
|
Return the square of the argument element-wise. |
|
The absolute value, computed elementwise. |
|
Pair-wise maximum of tensor elements. |
|
Pair-wise minimum of tensor elements. |