sumOfSquares

The array must not be null.

Return

the sum of the squares of the elements of the array

Parameters

array

the input array. Cannot be empty.