antioch-0.4.0
List of all members | Public Member Functions
Antioch::AntiochPrivate::GSLSplinerPolicy< true > Struct Template Reference

GSLSpliner policy for vector inputs. More...

#include <gsl_spliner_policy.h>

Public Member Functions

template<typename VectorScalar >
VectorScalar interpolation (const VectorScalar &x, const GSLSplinerShim &gsl_shim)
 
template<typename VectorScalar >
VectorScalar dinterpolation (const VectorScalar &x, const GSLSplinerShim &gsl_shim)
 

Detailed Description

template<>
struct Antioch::AntiochPrivate::GSLSplinerPolicy< true >

GSLSpliner policy for vector inputs.

If x is a vector, then need to extract scalars since GSL can only evaluate one point at a time.

Definition at line 56 of file gsl_spliner_policy.h.

Member Function Documentation

template<typename VectorScalar >
VectorScalar Antioch::AntiochPrivate::GSLSplinerPolicy< true >::dinterpolation ( const VectorScalar &  x,
const GSLSplinerShim &  gsl_shim 
)
inline

Definition at line 70 of file gsl_spliner_policy.h.

References Antioch::zero_clone().

71  {
72  VectorScalar out = zero_clone(x);
73  for(unsigned int i =0; i < x.size(); ++i)
74  {
75  out[i] = gsl_shim.eval_deriv(x[i]);
76  }
77  return out;
78  }
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)
Definition: eigen_utils.h:145
template<typename VectorScalar >
VectorScalar Antioch::AntiochPrivate::GSLSplinerPolicy< true >::interpolation ( const VectorScalar &  x,
const GSLSplinerShim &  gsl_shim 
)
inline

Definition at line 59 of file gsl_spliner_policy.h.

References Antioch::zero_clone().

60  {
61  VectorScalar out = zero_clone(x);
62  for(unsigned int i =0; i < x.size(); ++i)
63  {
64  out[i] = gsl_shim.eval(x[i]);
65  }
66  return out;
67  }
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)
Definition: eigen_utils.h:145

The documentation for this struct was generated from the following file:

Generated on Thu Jul 7 2016 11:09:50 for antioch-0.4.0 by  doxygen 1.8.8