SSQ

Returns the sum of the squares of the elements of a matrix.

Format

SSQ (M)

Argument

 
M
A matrix.

Example

The following example illustrates the use of the SSQ function:
 
Function
SSQ({[1, 2], [3, 4]})
Result
30 (1**2 + 2**2 + 3**2 + 4**2)