(rontolisp) docs
← Functions

linalg:square

(linalg:square array)

Returns a fresh array of the same shape with every element multiplied by itself (numpy's np.square) -- (linalg:mul array array) under a numpy-parity name, so it rides linalg:mul's --simd kernels. A plain number squares to a plain number.