Function opensn::LpNorm
Defined in File math.h
Function Documentation
-
double opensn::LpNorm(const std::vector<double> &x, const double &p)
Returns the p-norm.
\[\|\mathbf{x}\|_{p}=\left(\sum_{i=1}^{n}\left|x_{i}\right|^{p}\right)^{1 / p} \]
Defined in File math.h
Returns the p-norm.