SquaredNorm function

Fully qualified name: Std.Math.SquaredNorm

function SquaredNorm(array : Double[]) : Double

Summary

Returns the squared 2-norm of a vector.

Description

Returns the squared 2-norm of a vector; that is, given an input x̄, returns ∑xᵢ.

Input

array

The vector whose squared 2-norm is to be returned.

Output

The squared 2-norm of array.