27 #ifndef ANTIOCH_GSL_SPLINER_POLICY_H
28 #define ANTIOCH_GSL_SPLINER_POLICY_H
35 namespace AntiochPrivate
43 template <
typename Scalar>
45 {
return gsl_shim.eval(x);}
47 template <
typename Scalar>
49 {
return gsl_shim.eval_deriv(x);}
58 template <
typename VectorScalar>
59 VectorScalar
interpolation(
const VectorScalar & x,
const GSLSplinerShim& gsl_shim)
62 for(
unsigned int i =0; i < x.size(); ++i)
64 out[i] = gsl_shim.eval(x[i]);
69 template <
typename VectorScalar>
70 VectorScalar
dinterpolation(
const VectorScalar & x,
const GSLSplinerShim& gsl_shim)
73 for(
unsigned int i =0; i < x.size(); ++i)
75 out[i] = gsl_shim.eval_deriv(x[i]);
85 #endif // ANTIOCH_GSL_SPLINER_POLICY_H
Scalar interpolation(const Scalar &x, const GSLSplinerShim &gsl_shim)
VectorScalar dinterpolation(const VectorScalar &x, const GSLSplinerShim &gsl_shim)
VectorScalar interpolation(const VectorScalar &x, const GSLSplinerShim &gsl_shim)
Scalar dinterpolation(const Scalar &x, const GSLSplinerShim &gsl_shim)
Default GSLSpliner policy.
The parameters are reduced parameters.
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)