24#ifndef quantlib_laplace_interpolation
25#define quantlib_laplace_interpolation
36 class FdmLinearOpLayout;
46 std::vector<std::vector<Real>> x,
48 Size maxIterMultiplier = 10);
55 std::function<
Real(
const std::vector<Size>&)>
y_;
56 std::vector<std::vector<Real>>
x_;
63 ext::shared_ptr<FdmLinearOpLayout>
layout_;
71 const std::vector<Real>& x = {},
72 const std::vector<Real>&
y = {},
74 Size maxIterMultiplier = 10);
1-D array used in linear algebra.
1-D array used in linear algebra.
std::vector< Size > fullCoordinates(const std::vector< Size > &projectedCoordinates) const
ext::shared_ptr< FdmLinearOpLayout > layout_
Array interpolatedValues_
std::vector< bool > coordinateIncluded_
std::vector< Size > projectedCoordinates(const std::vector< Size > &coordinates) const
Size numberOfCoordinatesIncluded_
std::function< Real(const std::vector< Size > &)> y_
std::vector< std::vector< Real > > x_
Real operator()(const std::vector< Size > &coordinates) const
Matrix used in linear algebra.
std::size_t Size
size of a container
matrix used in linear algebra.
void laplaceInterpolation(Matrix &A, const std::vector< Real > &x, const std::vector< Real > &y, Real relTol, Size maxIterMultiplier)
Maps shared_ptr to either the boost or std implementation.