| 859 | } |
| 860 | |
| 861 | void 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 | |
| 877 | void _checkNorm(DenseMatrix normValues, int row, size_t numPoints, double one_eps, double two_eps, double inf_eps) |
| 878 | { |
no test coverage detected