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 (i.e., the element- |
|
|
|
Calculates an implementation-dependent approximation of the principal value of the inverse |
|
Calculates an implementation-dependent approximation to the inverse hyperbolic cosine, having |
|
Calculates the sum for each element x1_i of the input array x1 with the respective element |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Calculates an implementation-dependent approximation of the principal value of the inverse |
|
Calculates an implementation-dependent approximation to the inverse hyperbolic sine, having |
|
Calculates an implementation-dependent approximation of the principal value of the inverse |
|
Calculates an implementation-dependent approximation of the inverse tangent of the quotient |
|
Calculates an implementation-dependent approximation to the inverse hyperbolic tangent, having |
|
Computes the bitwise AND of the underlying binary representation of each element x1_iof the |
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 |
|
Computes the bitwise NOR of the underlying binary representation of each element x1_i of the |
|
Computes the bitwise OR of the underlying binary representation of each element x1_i of the |
|
Shifts the bits of each element x1_i of the input array x1 to the right by appending x2_i |
|
Computes the bitwise XOR of the underlying binary representation of each element x1_i of the |
|
❌ Not implemented Array-API 'cbrt' doc |
|
Rounds each element x_i of the input array x to the smallest (i.e., closest to -infinity) |
|
|
|
|
|
|
|
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 |
|
❌ 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 |
|
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) |
|
Rounds the result of dividing each element x1_i of the input array x1 by the respective |
|
|
|
|
|
|
|
|
|
Computes the truth value of x1_i > x2_i for each element x1_i of the input array x1 with the |
|
Computes the truth value of x1_i >= x2_i for each element x1_i of the input array x1 with the |
|
|
|
|
|
|
|
Tests each element x_i of the input array x to determine if finite (i.e., not NaN and not |
|
Tests each element x_i of the input array x to determine if equal to positive or negative |
|
Tests each element x_i of the input array x to determine whether the element is NaN. |
|
❌ Not implemented Array-API 'isnat' doc |
|
|
|
|
|
|
|
Computes the truth value of x1_i < x2_i for each element x1_i of the input array x1 with the |
|
Computes the truth value of x1_i <= x2_i for each element x1_i of the input array x1 with the |
|
Calculates an implementation-dependent approximation to the natural (base e) logarithm, having |
|
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 |
|
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 |
|
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 |
|
"Computes the logical XOR for each element x1_i of the input array x1 with the respective |
|
|
|
|
|
|
|
Calculates the product for each element x1_i of the input array x1 with the respective element |
|
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 |
|
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 |
|
|
|
|
|
|
|
|
|
Returns the remainder of division for each element x1_i of the input array x1 and the |
|
|
|
|
|
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, having domain (-infinity, |
|
Calculates an implementation-dependent approximation to the hyperbolic sine, having domain. |
|
|
|
Calculates the square root, having domain [0, +infinity] and codomain [0, +infinity], for each |
|
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 |
|
Calculates an implementation-dependent approximation to the tangent, having domain |
|
Calculates an implementation-dependent approximation to the hyperbolic tangent, having |
|
|
|
Rounds each element x_i of the input array x to the integer-valued number that is closest to |