Function opensn::L1Norm
Defined in File math.h
Function Documentation
-
double opensn::L1Norm(const std::vector<double> &x)
Returns the 1-norm. Also known as the Taxicab or Manhattan norm.
\[\|\boldsymbol{x}\|_{1}=\sum_{i=1}^{n}\left|x_{i}\right| \]