18 #ifndef __LAGRANGE_INTERPOLATOR_H 19 #define __LAGRANGE_INTERPOLATOR_H 23 #include <unordered_map> 67 lt_coordinate(
double tolerance) : TOL(tolerance) {}
69 bool operator() (
const std::vector<double>& x,
70 const std::vector<double>& y)
const 72 const std::size_t n = std::max(x.size(), y.size());
73 for (std::size_t i = 0; i < n; ++i)
84 else if (xx > (yy + TOL))
96 static std::map<std::vector<double>, std::vector<std::size_t>,
101 static void extract_dof_component_map(std::unordered_map<std::size_t,
102 std::size_t>& dof_component_map,
107 static bool in_bounding_box(
const std::vector<double>& point,
108 const std::vector<double>& bounding_box,
Definition: FunctionSpace.h:53
Definition: Expression.h:49
Definition: LagrangeInterpolator.h:38
Definition: Function.h:65
static void interpolate(Function &u, const Expression &u0)
Definition: LagrangeInterpolator.cpp:34