QMCPACK
SolveFirstDerivInterp1D< float > Struct Template Reference
+ Collaboration diagram for SolveFirstDerivInterp1D< float >:

Static Public Member Functions

template<class CT >
static void apply (const CT &data, CT &p, int N, float *bcLower, float *bcUpper)
 

Detailed Description

template<>
struct SolveFirstDerivInterp1D< float >

Definition at line 202 of file BsplineOneDimSolvers.h.

Member Function Documentation

◆ apply()

static void apply ( const CT &  data,
CT &  p,
int  N,
float *  bcLower,
float *  bcUpper 
)
inlinestatic

Definition at line 205 of file BsplineOneDimSolvers.h.

References copy(), and qmcplusplus::Units::force::N.

206  {
207  std::vector<double> data_d(N), p_d(N);
208  std::copy(data.begin(), data.end(), data_d.begin());
209  double bcLower_d[4];
210  double bcUpper_d[4];
211  std::copy(bcLower, bcLower + 4, bcLower_d);
212  std::copy(bcUpper, bcUpper + 4, bcUpper_d);
213 
214  SolveFirstDerivInterp1D<double>::apply(data_d, p_d, N, bcLower_d, bcUpper_d);
215 
216  std::copy(p_d.begin(), p_d.end(), p.begin());
217  }
void copy(const Array< T1, 3 > &src, Array< T2, 3 > &dest)
Definition: Blitz.h:639

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