Function opensn::L1Norm

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|\).