square¶
- square(x: array, /) array ¶
Squares (
x_i * x_i
) each elementx_i
of the input arrayx
.- Parameters:
x (array) – input array. Should have a numeric data type.
- Returns:
out (array) – an array containing the evaluated result for each element in
x
. The returned array must have a data type determined by Type Promotion Rules.