-
numpy.square(x[, out]) =
-
Return the element-wise square of the input.
Parameters: x : array_like
Input data.
Returns: out : ndarray
Element-wise
x*x
, of the same shape and dtype asx
. Returns scalar ifx
is a scalar.See also
Examples
>>> np.square([-1j, 1]) array([-1.-0.j, 1.+0.j])
numpy.square()
2017-01-10 18:18:47
Please login to continue.