Loading...
Searching...
No Matches
ArraySamplers-Impl.hpp
Go to the documentation of this file.
132 }
155{
CubicArraySampler & operator=(const CubicArraySampler &other)
Copy assignment operator.
Definition ArraySamplers-Impl.hpp:425
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers.hpp:200
T operator()(const VectorType &pt) const
Returns sampled value at point pt.
Definition ArraySamplers-Impl.hpp:449
std::function< T(const VectorType &)> Functor() const
Returns a std::function object that wraps this instance.
Definition ArraySamplers-Impl.hpp:466
N-D array sampler using linear interpolation.
Definition ArraySamplers.hpp:107
T operator()(const VectorType &pt) const
Returns sampled value at point pt.
Definition ArraySamplers-Impl.hpp:321
LinearArraySampler & operator=(const LinearArraySampler &other)
Copy assignment operator.
Definition ArraySamplers-Impl.hpp:297
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers.hpp:111
void GetCoordinatesAndWeights(const VectorType &pt, std::array< CoordIndexType, FLAT_KERNEL_SIZE > &indices, std::array< ScalarType, FLAT_KERNEL_SIZE > &weights) const
Returns the indices of points and their sampling weight for given point.
Definition ArraySamplers-Impl.hpp:337
void GetCoordinatesAndGradientWeights(const VectorType &pt, std::array< CoordIndexType, FLAT_KERNEL_SIZE > &indices, std::array< VectorType, FLAT_KERNEL_SIZE > &weights) const
Definition ArraySamplers-Impl.hpp:360
std::function< T(const VectorType &)> Functor() const
Returns a std::function instance that wraps this instance.
Definition ArraySamplers-Impl.hpp:385
static std::enable_if_t< IsMatrixSizeStatic< Rows, Cols >(), D > MakeConstant(ValueType val)
Makes a static matrix with constant entries.
Definition MatrixDenseBase-Impl.hpp:152
Definition Matrix.hpp:30
NearestArraySampler & operator=(const NearestArraySampler &other)
Copy assignment operator.
Definition ArraySamplers-Impl.hpp:207
CoordIndexType GetCoordinate(const VectorType &pt) const
Returns the nearest array index for point pt.
Definition ArraySamplers-Impl.hpp:238
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers.hpp:34
T operator()(const VectorType &pt) const
Returns sampled value at point pt.
Definition ArraySamplers-Impl.hpp:231
NearestArraySampler()=default
Default constructor.
std::function< T(const VectorType &)> Functor() const
Returns a std::function object that wraps this instance.
Definition ArraySamplers-Impl.hpp:257
Definition pybind11Utils.hpp:21
std::enable_if_t< std::is_arithmetic< T >::value, S > Lerp(const S &f0, const S &f1, T t)
Computes linear interpolation.
Definition MathUtils-Impl.hpp:295
std::enable_if_t< std::is_arithmetic< T >::value > GetBarycentric(T x, size_t begin, size_t end, size_t &i, T &t)
Computes the barycentric coordinate.
Definition MathUtils-Impl.hpp:196
constexpr auto ElemMul(const MatrixExpression< T, Rows, Cols, M1 > &a, const MatrixExpression< T, Rows, Cols, M2 > &b)
Definition MatrixExpression-Impl.hpp:1085
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers-Impl.hpp:83
static auto Call(const View &view, Vector< ssize_t, N > i, Vector< ScalarType, N > t, CubicInterpolationOp op, RemainingIndices... indices)
Definition ArraySamplers-Impl.hpp:87
Definition ArraySamplers-Impl.hpp:53
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers-Impl.hpp:54
static auto Call(const View &view, Vector< ssize_t, N > i, Vector< ScalarType, N > t, CubicInterpolationOp op, RemainingIndices... indices)
Definition ArraySamplers-Impl.hpp:58
static void Call(Coords &c, Weights &w, Vector< size_t, N > i, Vector< T, N > t, Vector< T, N > acc, RemainingIndices... idx)
Definition ArraySamplers-Impl.hpp:157
Definition ArraySamplers-Impl.hpp:137
static void Call(Coords &c, Weights &w, Vector< size_t, N > i, Vector< T, N > t, Vector< T, N > acc, RemainingIndices... idx)
Definition ArraySamplers-Impl.hpp:139
static void Call(Coords &c, Weights &w, Vector< size_t, N > i, Vector< ScalarType, N > t, T acc, RemainingIndices... idx)
Definition ArraySamplers-Impl.hpp:124
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers-Impl.hpp:121
Definition ArraySamplers-Impl.hpp:104
static void Call(Coords &c, Weights &w, Vector< size_t, N > i, Vector< ScalarType, N > t, T acc, RemainingIndices... idx)
Definition ArraySamplers-Impl.hpp:108
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers-Impl.hpp:105
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers-Impl.hpp:40
static auto Call(const View &view, Vector< ssize_t, N > i, Vector< ScalarType, N > t, RemainingIndices... indices)
Definition ArraySamplers-Impl.hpp:43
Definition ArraySamplers-Impl.hpp:22
typename GetScalarType< T >::value ScalarType
Definition ArraySamplers-Impl.hpp:23
static auto Call(const View &view, Vector< ssize_t, N > i, Vector< ScalarType, N > t, RemainingIndices... indices)
Definition ArraySamplers-Impl.hpp:26
1.9.8