Skip to content
Snippets Groups Projects

ENH: Allow `Splinterpolator` instances to be created from an existing set of spline coefficients, and extend extrapolation options

Merged Paul McCarthy requested to merge enh/splinterpolator into master
Compare and Show latest version
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -104,10 +104,10 @@ public:
}
// compare two float vectors
void compare(std::vector<float> a, std::vector<float> b, float tol=1e-5) {
void compare(std::vector<float> a, std::vector<float> b, float tol=1e-6) {
BOOST_CHECK_EQUAL(a.size(), b.size());
for (auto i = 0; i < a.size(); i++) {
BOOST_CHECK_CLOSE(a[i], b[i], tol);
BOOST_CHECK_SMALL(a[i] - b[i], tol);
}
}
Loading