This is documentation for an old release of NumPy (version 1.7.0). Read this page in the documentation of the latest stable release (version > 1.17).
Return the element-wise square of the input.
Parameters : | x : array_like
|
---|---|
Returns : | out : ndarray
|
See also
Examples
>>> np.square([-1j, 1])
array([-1.-0.j, 1.+0.j])