| 853 | #define DMP_OUT_REL_TOL 1.0e-12 |
| 854 | |
| 855 | inline double getTolerance(const Vector& x) { |
| 856 | double vmax = 0.0; |
| 857 | for (int i = 0; i < x.Size(); ++i) |
| 858 | vmax = std::max(vmax, std::abs(x(i))); |
| 859 | return std::max(DMP_OUT_REL_TOL * vmax, DMP_OUT_TOL); |
| 860 | } |
| 861 | |
| 862 | inline double getTolerance(const Matrix& x) { |
| 863 | double vmax = 0.0; |
no test coverage detected