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

Function getInfNorm

test/testingutilities.cpp:587–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587double getInfNorm(const DenseMatrix &m)
588{
589 return m.lpNorm<Eigen::Infinity>();
590 double norm = 0.0;
591 for(int i = 0; i < m.rows(); i++) {
592 for(int j = 0; j < m.cols(); j++) {
593 norm = std::max(std::abs(m(i, j)), norm);
594 }
595 }
596
597 return norm;
598}
599
600double log(double base, double x)
601{

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected