reciprocal¶
- reciprocal(x: array, /) array ¶
Returns the reciprocal for each element
x_i
of the input arrayx
.- Parameters:
x (array) – input array. Should have a floating-point data type.
- Returns:
out (array) – an array containing the element-wise results. The returned array must have a floating-point data type determined by Type Promotion Rules.
Notes
Special cases
For floating-point operands, special cases must be handled as if the operation is implemented as
1.0 / x
(seedivide()
).