Returns the reciprocal of the argument, element-wise.
Numpy arguments casting, order, subok, signature, and extobj are not supported. When where is provided, out must have a tensor value. out is not supported for storing the result, however it can be used in combination with where to set the value at indices for which where is set to False.
Tensor or scalar, this is a scalar if x is a scalar.
- Supported Platforms:
>>> import mindspore.numpy as np >>> x = np.arange(1, 7).reshape(2, 3).astype('float32') >>> output = np.reciprocal(x) >>> print(output) [[1. 0.5 0.33333334] [0.25 0.2 0.16666667]]