MCPcopy Create free account
hub / github.com/bgrimstad/splinter / getOneNorm

Function getOneNorm

test/testingutilities.cpp:559–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559double getOneNorm(const DenseMatrix &m)
560{
561 return m.lpNorm<1>();
562 double norm = 0.0;
563 for(int i = 0; i < m.rows(); i++) {
564 for(int j = 0; j < m.cols(); j++) {
565 norm += std::abs(m(i, j));
566 }
567 }
568
569 return norm;
570}
571
572double getTwoNorm(const DenseMatrix &m)
573{

Callers 4

compareFunctionsFunction · 0.85
compareFunctionValueFunction · 0.85
compareJacobianValueFunction · 0.85
getErrorNormsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected