Wildmeshing Toolkit
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
wmtk::optimization::DirichletEnergy2D Class Reference
Inheritance diagram for wmtk::optimization::DirichletEnergy2D:

Public Member Functions

 DirichletEnergy2D (std::vector< std::array< double, 4 > > &cells)
 The Dirichlet energy of a vertex position on a polyline.
 
TVector initial_position () const
 
double value (const TVector &x) override
 
void gradient (const TVector &x, TVector &gradv) override
 
void hessian (const TVector &x, THessian &hessian) override
 
void hessian (const TVector &x, MatrixXd &hessian) override
 
void solution_changed (const TVector &new_x) override
 

Private Attributes

std::vector< std::array< double, 4 > > m_cells
 

Constructor & Destructor Documentation

◆ DirichletEnergy2D()

wmtk::optimization::DirichletEnergy2D::DirichletEnergy2D ( std::vector< std::array< double, 4 > > &  cells)

The Dirichlet energy of a vertex position on a polyline.

Each edge must be provided as an array of 4 values: {x0, y0, x1, y1}. The first two entries (x0, y0) must be the same for all edges and will be replaced with x during optimization.


The documentation for this class was generated from the following files: