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

Public Member Functions

 AMIPSEnergy2D (std::vector< std::array< double, 6 > > &cells)
 Sum of AMIPS energies for 2D triangles.
 
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
 
bool is_step_valid (const TVector &x0, const TVector &x1) override
 

Private Attributes

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

Constructor & Destructor Documentation

◆ AMIPSEnergy2D()

wmtk::optimization::AMIPSEnergy2D::AMIPSEnergy2D ( std::vector< std::array< double, 6 > > &  cells)

Sum of AMIPS energies for 2D triangles.

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


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