Go to the documentation of this file. 1 #ifndef NPSTAT_RESCANARRAY_HH_
2 #define NPSTAT_RESCANARRAY_HH_
28 template<
typename Num1,
unsigned Len1,
unsigned Dim1,
29 typename Num2,
unsigned Len2,
unsigned Dim2>
30 void rescanArray(
const ArrayND<Num1,Len1,Dim1>& from,
31 ArrayND<Num2,Len2,Dim2>*
to,
32 unsigned interpolationDegree=0);
42 template<
typename Num1,
unsigned Len1,
unsigned Dim1,
43 typename Num2,
unsigned Len2,
unsigned Dim2>
49 const unsigned interpolationDegree)
53 ideg_(interpolationDegree)
101 template<
typename Num1,
unsigned Len1,
unsigned Dim1,
102 typename Num2,
unsigned Len2,
unsigned Dim2>
105 const unsigned interpolationDegree)
109 "In npstat::rescanArray: incompatible dimensionalities "
110 "of input and output arrays");
111 if (!(interpolationDegree == 0
U ||
112 interpolationDegree == 1
U ||
114 "In npstat::rescanArray: unsupported interpolation degree");
116 from, *
to, interpolationDegree));
121 #endif // NPSTAT_RESCANARRAY_HH_
Numeric interpolate3(const double *x, unsigned xDim) const
ArrayMapper(const ArrayND< Num1, Len1, Dim1 > &from, const ArrayND< Num2, Len2, Dim2 > &to, const unsigned interpolationDegree)
Linear transformation functor.
std::vector< LinearMapper1d > mappers_
Numeric & closest(const double *x, unsigned xDim)
Arbitrary-dimensional array template.
unsigned span(unsigned dim) const
Numeric interpolate1(const double *x, unsigned xDim) const
void rescanArray(const ArrayND< Num1, Len1, Dim1 > &from, ArrayND< Num2, Len2, Dim2 > *to, unsigned interpolationDegree=0)
std::vector< double > mapped_
const ArrayND< Num1, Len1, Dim1 > & from_
Exceptions for the npstat namespace.
Num1 operator()(const unsigned *index, unsigned indexLen) const