7 class PerSimplexFunction;
double get_value(const simplex::Simplex &variable_simplex) const override
collects the local neigh and call the same m_function on all simplicies
PerSimplexFunction & m_function
Eigen::MatrixXd get_hessian(const simplex::Simplex &variable_simplex) const override
get_hessian evaluates the hessian of the function f(x) defined wrt the variable x.
Eigen::VectorXd get_gradient(const simplex::Simplex &variable_simplex) const override
get_gradient collects the local neigh and call the gradient of m_function on all simplicies
PrimitiveType m_domain_simplex_type
std::vector< simplex::Simplex > domain(const simplex::Simplex &variable_simplex) const override
LocalNeighborsSumFunction(Mesh &mesh, const attribute::MeshAttributeHandle &handle, PerSimplexFunction &function)