Wildmeshing Toolkit
|
#include <PerSimplexFunction.hpp>
Public Member Functions | |
PerSimplexFunction (const Mesh &mesh, const PrimitiveType primitive_type, const attribute::MeshAttributeHandle &variable_attribute_handle) | |
virtual | ~PerSimplexFunction () |
virtual double | get_value (const simplex::Simplex &domain_simplex) const =0 |
This function is defined over a simplex (normally a triangle or tetrahedron). More... | |
virtual Eigen::VectorXd | get_gradient (const simplex::Simplex &domain_simplex, const simplex::Simplex &variable_simplex) const |
virtual Eigen::MatrixXd | get_hessian (const simplex::Simplex &domain_simplex, const simplex::Simplex &variable_simplex) const |
const Mesh & | mesh () const |
const attribute::MeshAttributeHandle & | attribute_handle () const |
int64_t | embedded_dimension () const |
Protected Attributes | |
const PrimitiveType | m_primitive_type |
Private Attributes | |
attribute::MeshAttributeHandle | m_handle |
const Mesh & | m_mesh |
Definition at line 11 of file PerSimplexFunction.hpp.
wmtk::function::PerSimplexFunction::PerSimplexFunction | ( | const Mesh & | mesh, |
const PrimitiveType | primitive_type, | ||
const attribute::MeshAttributeHandle & | variable_attribute_handle | ||
) |
Definition at line 6 of file PerSimplexFunction.cpp.
References wmtk::attribute::MeshAttributeHandle::holds(), wmtk::attribute::MeshAttributeHandle::is_same_mesh(), m_handle, and m_mesh.
|
inlinevirtual |
Definition at line 18 of file PerSimplexFunction.hpp.
|
inline |
Definition at line 42 of file PerSimplexFunction.hpp.
References wmtk::attribute::MeshAttributeHandle::is_valid(), and m_handle.
Referenced by embedded_dimension(), wmtk::function::PerSimplexAutodiffFunction::get_coordinates(), and wmtk::function::AMIPS::get_raw_coordinates().
int64_t wmtk::function::PerSimplexFunction::embedded_dimension | ( | ) | const |
Definition at line 19 of file PerSimplexFunction.cpp.
References attribute_handle(), and wmtk::attribute::MeshAttributeHandle::dimension().
Referenced by wmtk::function::TriangleAMIPS::eval(), wmtk::function::PerSimplexAutodiffFunction::get_gradient(), wmtk::function::LocalNeighborsSumFunction::get_gradient(), wmtk::function::PerSimplexAutodiffFunction::get_hessian(), wmtk::function::LocalNeighborsSumFunction::get_hessian(), wmtk::function::AMIPS::get_raw_coordinates(), wmtk::function::PerSimplexAutodiffFunction::get_value(), and wmtk::function::LocalNeighborsSumFunction::get_value().
|
inlinevirtual |
Reimplemented in wmtk::function::AMIPS, and wmtk::function::PerSimplexAutodiffFunction.
Definition at line 28 of file PerSimplexFunction.hpp.
Referenced by wmtk::function::LocalNeighborsSumFunction::get_gradient().
|
inlinevirtual |
Reimplemented in wmtk::function::AMIPS, and wmtk::function::PerSimplexAutodiffFunction.
Definition at line 34 of file PerSimplexFunction.hpp.
Referenced by wmtk::function::LocalNeighborsSumFunction::get_hessian().
|
pure virtual |
This function is defined over a simplex (normally a triangle or tetrahedron).
And the domain of the function is represented by the input argument domain_simplex.
domain_simplex | The domain that the function is defined over. |
Implemented in wmtk::function::EdgeValenceEnergy, wmtk::function::AMIPS, and wmtk::function::PerSimplexAutodiffFunction.
Referenced by wmtk::function::LocalNeighborsSumFunction::get_value().
|
inline |
Definition at line 41 of file PerSimplexFunction.hpp.
References m_mesh.
Referenced by wmtk::function::PerSimplexAutodiffFunction::get_coordinates(), wmtk::function::LocalNeighborsSumFunction::get_gradient(), wmtk::function::LocalNeighborsSumFunction::get_hessian(), wmtk::function::AMIPS::get_raw_coordinates(), wmtk::function::LocalNeighborsSumFunction::get_value(), and wmtk::function::EdgeValenceEnergy::tri_mesh().
|
private |
Definition at line 51 of file PerSimplexFunction.hpp.
Referenced by attribute_handle(), and PerSimplexFunction().
|
private |
Definition at line 52 of file PerSimplexFunction.hpp.
Referenced by mesh(), and PerSimplexFunction().
|
protected |
Definition at line 55 of file PerSimplexFunction.hpp.
Referenced by wmtk::function::PerSimplexAutodiffFunction::get_coordinates(), and wmtk::function::AMIPS::get_raw_coordinates().