diff --git a/spec/API_specification/elementwise_functions.md b/spec/API_specification/elementwise_functions.md index e5ae19a53..c97803e08 100644 --- a/spec/API_specification/elementwise_functions.md +++ b/spec/API_specification/elementwise_functions.md @@ -831,6 +831,22 @@ Calculates the product for each element `x1_i` of the input array `x1` with the - an array containing the element-wise products. +### # negative(x, /) + +Computes the numerical negative of each element `x_i` (i.e., `y_i = -x_i`) of the input array `x`. + +#### Parameters + +- **x**: _<array>_ + + - input array. + +#### Returns + +- **out**: _<array>_ + + - an array containing the evaluated result for each element in `x`. The returned array must have a supported numerical data type. + ### # not_equal(x1, 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`. @@ -851,6 +867,22 @@ Computes the truth value of `x1_i != x2_i` for each element `x1_i` of the input - an array containing the element-wise results. +### # positive(x, /) + +Computes the numerical positive of each element `x_i` (i.e., `y_i = +x_i`) of the input array `x`. + +#### Parameters + +- **x**: _<array>_ + + - input array. + +#### Returns + +- **out**: _<array>_ + + - an array containing the evaluated result for each element in `x`. The returned array must have a supported numerical data type. + ### # pow(x1, x2, /) 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`. @@ -959,7 +991,7 @@ Returns an indication of the sign of a number for each element `x_i` of the inpu - **out**: _<array>_ - - an array containing the evaluated result for each element in `x`. If `out` is `None`, the returned array must have the same data type as `x`. + - an array containing the evaluated result for each element in `x`. ### # sin(x, /)