Function opensn::L2Norm
Defined in File math.h
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}}\).
Defined in File math.h
Return the 2-norm (Euclidean / Frobenius norm): \(\|\boldsymbol{x}\|_{2}=\sqrt{x_{1}^{2}+\cdots+x_{n}^{2}}\).