Function opensn::L2Norm

Function Documentation

double opensn::L2Norm(const std::vector<double> &x)

Return the 2-norm (Euclidean / Frobenius norm): \(\|\boldsymbol{x}\|_{2}=\sqrt{x_{1}^{2}+\cdots+x_{n}^{2}}\).