numpy.square(x[, out]) =
Return the element-wise square of the input.
Parameters: |
x : array_like Input data. |
---|---|
Returns: |
out : ndarray Element-wise |
See also
>>> np.square([-1j, 1]) array([-1.-0.j, 1.+0.j])
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.12.0/reference/generated/numpy.square.html