positiveΒΆ
- positive(x: array, /) array ΒΆ
Computes the numerical positive of each element
x_i
(i.e.,y_i = +x_i
) of the input arrayx
.- Parameters:
x (array) β input array. Should have a numeric data type.
- Returns:
out (array) β an array containing the evaluated result for each element in
x
. The returned array must have the same data type asx
.
Notes
Changed in version 2022.12: Added complex data type support.