Template Function bitrl::utils::maths::sum_sqr

Function Documentation

template<typename T>
T bitrl::utils::maths::sum_sqr(const DynVec<T> &vec)

Compute the sum of squares of the elements of the given vector.

Parameters:

The – vector

Returns:

sum of squares