|
Wildmeshing Toolkit
|
#include <LocalNeighborsSumFunction.hpp>
Public Member Functions | |
| LocalNeighborsSumFunction (Mesh &mesh, const attribute::MeshAttributeHandle &handle, PerSimplexFunction &function) | |
| double | get_value (const simplex::Simplex &variable_simplex) const override |
| collects the local neigh and call the same m_function on all simplicies | |
| 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 | |
| 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. | |
| std::vector< simplex::Simplex > | domain (const simplex::Simplex &variable_simplex) const override |
Public Member Functions inherited from wmtk::function::Function | |
| Function (Mesh &mesh, const attribute::MeshAttributeHandle &handle) | |
| virtual | ~Function () |
| Mesh & | mesh () |
| const Mesh & | mesh () const |
| PrimitiveType | attribute_type () const |
| int64_t | embedded_dimension () const |
| const attribute::MeshAttributeHandle & | attribute_handle () const |
Private Attributes | |
| PerSimplexFunction & | m_function |
| PrimitiveType | m_domain_simplex_type |
Definition at line 9 of file LocalNeighborsSumFunction.hpp.
| wmtk::function::LocalNeighborsSumFunction::LocalNeighborsSumFunction | ( | Mesh & | mesh, |
| const attribute::MeshAttributeHandle & | handle, | ||
| PerSimplexFunction & | function | ||
| ) |
Definition at line 11 of file LocalNeighborsSumFunction.cpp.
References m_domain_simplex_type, wmtk::function::Function::mesh(), and wmtk::Mesh::top_simplex_type().
|
overridevirtual |
Implements wmtk::function::Function.
Definition at line 21 of file LocalNeighborsSumFunction.cpp.
References wmtk::simplex::cofaces_single_dimension_simplices(), m_domain_simplex_type, and wmtk::function::Function::mesh().
Referenced by get_gradient(), get_hessian(), and get_value().
|
overridevirtual |
get_gradient collects the local neigh and call the gradient of m_function on all simplicies
This variable is represented by the input argument variable_simplex.
| variable_simplex | The input simplex. f(x) is defined wrt the attributes of this argument. |
Implements wmtk::function::Function.
Definition at line 48 of file LocalNeighborsSumFunction.cpp.
References wmtk::function::Function::attribute_type(), domain(), wmtk::function::Function::embedded_dimension(), wmtk::function::PerSimplexFunction::embedded_dimension(), wmtk::function::PerSimplexFunction::get_gradient(), m_domain_simplex_type, m_function, wmtk::function::Function::mesh(), wmtk::function::PerSimplexFunction::mesh(), and wmtk::simplex::Simplex::primitive_type().
|
overridevirtual |
get_hessian evaluates the hessian of the function f(x) defined wrt the variable x.
This variable is represented by the input argument variable_simplex.
| variable_simplex | The input simplex. f(x) is defined wrt the attributes of this argument. |
Implements wmtk::function::Function.
Definition at line 67 of file LocalNeighborsSumFunction.cpp.
References wmtk::function::Function::attribute_type(), domain(), wmtk::function::Function::embedded_dimension(), wmtk::function::PerSimplexFunction::embedded_dimension(), wmtk::function::PerSimplexFunction::get_hessian(), m_domain_simplex_type, m_function, wmtk::function::Function::mesh(), wmtk::function::PerSimplexFunction::mesh(), and wmtk::simplex::Simplex::primitive_type().
|
overridevirtual |
collects the local neigh and call the same m_function on all simplicies
| variable_simplex | The input simplex. f(x) is defined wrt this argument. |
Implements wmtk::function::Function.
Definition at line 30 of file LocalNeighborsSumFunction.cpp.
References wmtk::function::Function::attribute_type(), domain(), wmtk::function::Function::embedded_dimension(), wmtk::function::PerSimplexFunction::embedded_dimension(), wmtk::function::PerSimplexFunction::get_value(), m_domain_simplex_type, m_function, wmtk::function::Function::mesh(), wmtk::function::PerSimplexFunction::mesh(), and wmtk::simplex::Simplex::primitive_type().
|
private |
Definition at line 44 of file LocalNeighborsSumFunction.hpp.
Referenced by domain(), get_gradient(), get_hessian(), get_value(), and LocalNeighborsSumFunction().
|
private |
Definition at line 43 of file LocalNeighborsSumFunction.hpp.
Referenced by get_gradient(), get_hessian(), and get_value().