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

Function checkNorm

test/testingutilities.cpp:861–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859}
860
861void checkNorm(DenseMatrix normValues, TestType type, size_t numPoints, double one_eps, double two_eps, double inf_eps)
862{
863 if(type == TestType::All || type == TestType::FunctionValue) {
864 INFO("Function value error:");
865 _checkNorm(normValues, 0, numPoints, one_eps, two_eps, inf_eps);
866 }
867 if(type == TestType::All || type == TestType::Jacobian) {
868 INFO("Jacobian value error:");
869 _checkNorm(normValues, 1, numPoints, one_eps, two_eps, inf_eps);
870 }
871 if(type == TestType::All || type == TestType::Hessian) {
872 INFO("Hessian value error:");
873 _checkNorm(normValues, 2, numPoints, one_eps, two_eps, inf_eps);
874 }
875}
876
877void _checkNorm(DenseMatrix normValues, int row, size_t numPoints, double one_eps, double two_eps, double inf_eps)
878{

Callers 2

checkNormsFunction · 0.85
testApproximationFunction · 0.85

Calls 1

_checkNormFunction · 0.85

Tested by

no test coverage detected