rbc.stdlib.elementwise_functions#
Description
Array API specification for element-wise functions.
https://data-apis.org/array-api/latest/API_specification/elementwise_functions.html.
Functions
|
Calculates the absolute value for each element x_i of the input array x. |
|
|
|
Calculates an implementation-dependent approximation of the principal value of the inverse cosine for each element x_i of the input array x. |
|
Calculates an implementation-dependent approximation to the inverse hyperbolic cosine for each element x_i of the input array x. |
|
Calculates the sum for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Calculates an implementation-dependent approximation of the principal value of the inverse sine for each element x_i of the input array x. |
|
Calculates an implementation-dependent approximation to the inverse hyperbolic sine for each element x_i in the input array x. |
|
Calculates an implementation-dependent approximation of the principal value of the inverse tangent for each element x_i of the input array x. |
|
Calculates an implementation-dependent approximation of the inverse tangent of the quotient x1/x2, having domain [-infinity, +infinity] x |
|
Calculates an implementation-dependent approximation to the inverse hyperbolic tangent, having domain [-1, +1] and codomain [-infinity, +infinity], for each element x_i of the input array x. |
|
Computes the bitwise AND of the underlying binary representation of each element x1_iof the input array x1 with the respective element x2_i of the input array x2. |
Inverts (flips) each bit for each element x_i of the input array x. |
|
|
Shifts the bits of each element x1_i of the input array x1 to the left by appending x2_i (i.e., the respective element in the input array x2) zeros to the right of x1_i. |
|
Computes the bitwise OR of the underlying binary representation of each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Shifts the bits of each element x1_i of the input array x1 to the right by appending x2_i (i.e., the respective element in the input array x2) zeros to the right of x1_i. |
|
Computes the bitwise XOR of the underlying binary representation of each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
❌ Not implemented Array-API 'cbrt' doc |
|
Rounds each element x_i of the input array x to the smallest (i.e., closest to -infinity) integer-valued number that is not less than x_i. |
|
Returns the complex conjugate for each element x_i of the input array |
|
|
|
|
|
Calculates an implementation-dependent approximation to the cosine, having domain |
|
Calculates an implementation-dependent approximation to the hyperbolic cosine, having |
|
|
|
|
|
Calculates the division for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
❌ Not implemented Array-API 'divmod' doc |
|
Computes the truth value of x1_i == x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates an implementation-dependent approximation to the exponential function, having |
|
|
|
Calculates an implementation-dependent approximation to exp(x)-1, having domain [-infinity, |
|
|
|
❌ Not implemented Array-API 'float_power' doc |
|
Rounds each element x_i of the input array x to the greatest (i.e., closest to +infinity) integer-valued number that is not greater than x_i. |
|
Rounds the result of dividing each element x1_i of the input array x1 by the respective element x2_i of the input array x2 to the greatest (i.e., closest to +infinity) integer-value number that is not greater than the division result. |
|
|
|
|
|
|
|
|
|
Computes the truth value of x1_i > x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the truth value of x1_i >= x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
|
|
|
|
❌ Not implemented |
|
|
|
Tests each element x_i of the input array x to determine if finite (i.e., not NaN and not equal to positive or negative infinity). |
|
Tests each element x_i of the input array x to determine if equal to positive or negative infinity. |
|
Tests each element x_i of the input array x to determine whether the element is NaN. |
|
❌ Not implemented NumPy 'isnat' doc |
|
|
|
|
|
|
|
Computes the truth value of x1_i < x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the truth value of x1_i <= x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Calculates an implementation-dependent approximation to the natural (base e) logarithm, having domain [0, +infinity] and codomain [-infinity, +infinity], for each element x_i of the input array x. |
|
Calculates an implementation-dependent approximation to the base 10 logarithm, having |
|
Calculates an implementation-dependent approximation to log(1+x), where log refers to the natural (base e) logarithm, having domain [-1, +infinity] and codomain [-infinity, +infinity], for each element x_i of the input array x. |
|
Calculates an implementation-dependent approximation to the base 2 logarithm, having |
|
Calculates the logarithm of the sum of exponentiations |
|
|
|
Computes the logical AND for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the logical NOT for each element x_i of the input array x. |
|
Computes the logical OR for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
"Computes the logical XOR for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
|
|
|
|
|
|
Calculates the product for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the numerical negative of each element x_i (i.e., y_i = -x_i) of the |
|
|
|
Computes the truth value of x1_i != x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2. |
|
Computes the numerical positive of each element x_i (i.e., y_i = +x_i) of the |
|
Calculates an implementation-dependent approximation of exponentiation by raising each element x1_i (the base) of the input array x1 to the power of x2_i (the exponent), where x2_i is the corresponding element of the input array x2. |
|
|
|
|
|
|
|
❌ Not implemented |
|
|
|
Returns the remainder of division for each element x1_i of the input array x1 and the respective element x2_i of the input array x2. |
|
|
|
|
|
Rounds each element x_i of the input array x to the nearest integer-valued number. |
|
Returns an indication of the sign of a number for each element x_i of the input array x. |
|
|
|
Calculates an implementation-dependent approximation to the sine for each element x_i of the input array x. |
|
Calculates an implementation-dependent approximation to the hyperbolic sine for each element x_i of the input array x. |
|
|
|
Calculates the principal square root for each element x_i of the input array x. |
|
Squares (x_i * x_i) each element x_i of the input array x. |
|
Calculates the difference for each element x1_i of the input array x1 with the respective element x2_i of the input array x2 |
|
Calculates an implementation-dependent approximation to the tangent for each element x_i of the input array x. |
|
Calculates an implementation-dependent approximation to the hyperbolic tangent for each element x_i of the input array x. |
|
|
|
Rounds each element x_i of the input array x to the nearest integer-valued number that is closer to zero than x_i. |