Template Function normalize

Function Documentation

template<typename T>
bool normalize(vector<T> &x, double accur = 1.0e-12)

normalizes the vector returns true if successful, false if vector is too small