Wildmeshing Toolkit
|
#include <Function.hpp>
Public Member Functions | |
Function (Mesh &mesh, const attribute::MeshAttributeHandle &handle) | |
virtual | ~Function () |
virtual double | get_value (const simplex::Simplex &variable_simplex) const =0 |
Given a function f(x), get_value evaluate the function at the input simplex. More... | |
virtual Eigen::VectorXd | get_gradient (const simplex::Simplex &variable_simplex) const =0 |
get_gradient evaluates the gradient of the function f(x) defined wrt the variable x. More... | |
virtual Eigen::MatrixXd | get_hessian (const simplex::Simplex &variable_simplex) const =0 |
get_hessian evaluates the hessian of the function f(x) defined wrt the variable x. More... | |
Mesh & | mesh () |
const Mesh & | mesh () const |
PrimitiveType | attribute_type () const |
int64_t | embedded_dimension () const |
const attribute::MeshAttributeHandle & | attribute_handle () const |
virtual std::vector< simplex::Simplex > | domain (const simplex::Simplex &variable_simplex) const =0 |
Private Attributes | |
Mesh & | m_mesh |
attribute::MeshAttributeHandle | m_handle |
Definition at line 9 of file Function.hpp.
wmtk::function::Function::Function | ( | Mesh & | mesh, |
const attribute::MeshAttributeHandle & | handle | ||
) |
Definition at line 7 of file Function.cpp.
References wmtk::attribute::MeshAttributeHandle::holds(), wmtk::attribute::MeshAttributeHandle::is_same_mesh(), and m_mesh.
|
inlinevirtual |
Definition at line 13 of file Function.hpp.
|
inline |
Definition at line 51 of file Function.hpp.
References m_handle.
|
inline |
Definition at line 49 of file Function.hpp.
References m_handle, and wmtk::attribute::MeshAttributeHandle::primitive_type().
Referenced by wmtk::function::LocalNeighborsSumFunction::get_gradient(), wmtk::function::LocalNeighborsSumFunction::get_hessian(), and wmtk::function::LocalNeighborsSumFunction::get_value().
|
pure virtual |
Implemented in wmtk::function::LocalNeighborsSumFunction.
int64_t wmtk::function::Function::embedded_dimension | ( | ) | const |
Definition at line 15 of file Function.cpp.
References wmtk::attribute::MeshAttributeHandle::dimension(), wmtk::attribute::MeshAttributeHandle::is_valid(), and m_handle.
Referenced by wmtk::function::LocalNeighborsSumFunction::get_gradient(), wmtk::function::LocalNeighborsSumFunction::get_hessian(), and wmtk::function::LocalNeighborsSumFunction::get_value().
|
pure virtual |
get_gradient evaluates the gradient 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. |
Implemented in wmtk::function::LocalNeighborsSumFunction.
|
pure virtual |
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. |
Implemented in wmtk::function::LocalNeighborsSumFunction.
|
pure virtual |
Given a function f(x), get_value evaluate the function at the input simplex.
variable_simplex | The input simplex. f(x) is defined wrt this argument. |
Implemented in wmtk::function::LocalNeighborsSumFunction.
|
inline |
Definition at line 47 of file Function.hpp.
References m_mesh.
Referenced by wmtk::function::LocalNeighborsSumFunction::domain(), wmtk::function::LocalNeighborsSumFunction::get_gradient(), wmtk::function::LocalNeighborsSumFunction::get_hessian(), wmtk::function::LocalNeighborsSumFunction::get_value(), and wmtk::function::LocalNeighborsSumFunction::LocalNeighborsSumFunction().
|
inline |
Definition at line 48 of file Function.hpp.
References m_mesh.
|
private |
Definition at line 58 of file Function.hpp.
Referenced by attribute_handle(), attribute_type(), and embedded_dimension().
|
private |
Definition at line 57 of file Function.hpp.
Referenced by Function(), and mesh().