Function opensn::L2Norm
Defined in File math.h
Function Documentation
-
double opensn::L2Norm(const std::vector<double> &x)
Returns the 2-norm. Also known as the Euclidian or Frobenius norm.
\[\|\boldsymbol{x}\|_{2}=\sqrt{x_{1}^{2}+\cdots+x_{n}^{2}} \]