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