ENH: Allow `Splinterpolator` instances to be created from an existing set of spline coefficients, and extend extrapolation options
Compare changes
- Paul McCarthy authored
existing set of spline coefficients
+ 68
− 24
@@ -45,35 +45,67 @@ class Splinterpolator
Splinterpolator(const T *data, const std::vector<unsigned int>& dim, const std::vector<ExtrapolationType>& et, unsigned int order=3, bool copy_low_order=true, Utilities::NoOfThreads nthr=Utilities::NoOfThreads(1), double prec=1e-8) : _valid(false), _own_coef(false), _coef(0), _cptr(0), _ndim(0), _nthr(nthr._n)
@@ -204,12 +236,18 @@ private:
@@ -1334,14 +1372,21 @@ unsigned int Splinterpolator<T>::n_nonzero(const unsigned int *vec) const
@@ -1350,8 +1395,7 @@ void Splinterpolator<T>::common_construction(const T *data, const std::vector<un
@@ -1390,16 +1434,16 @@ void Splinterpolator<T>::assign(const Splinterpolator<T>& src)
@@ -1469,8 +1513,8 @@ void Splinterpolator<T>::deconv_along(unsigned int dim)