PolyFEM
Loading...
Searching...
No Matches
polyfem::solver::PowerMap Class Reference

#include <Parametrizations.hpp>

Inheritance diagram for polyfem::solver::PowerMap:
[legend]
Collaboration diagram for polyfem::solver::PowerMap:
[legend]

Public Member Functions

 PowerMap (const double power=1, const int from=-1, const int to=-1)
 
int size (const int x_size) const override
 
Eigen::VectorXd inverse_eval (const Eigen::VectorXd &y) override
 
Eigen::VectorXd eval (const Eigen::VectorXd &x) const override
 
Eigen::VectorXd apply_jacobian (const Eigen::VectorXd &grad, const Eigen::VectorXd &x) const override
 
- Public Member Functions inherited from polyfem::solver::Parametrization
 Parametrization ()
 
virtual ~Parametrization ()
 

Private Attributes

const double power_
 
const int from_
 
const int to_
 

Detailed Description

Definition at line 57 of file Parametrizations.hpp.

Constructor & Destructor Documentation

◆ PowerMap()

polyfem::solver::PowerMap::PowerMap ( const double  power = 1,
const int  from = -1,
const int  to = -1 
)
inline

Definition at line 60 of file Parametrizations.hpp.

References from_, power_, and to_.

Member Function Documentation

◆ apply_jacobian()

Eigen::VectorXd polyfem::solver::PowerMap::apply_jacobian ( const Eigen::VectorXd &  grad,
const Eigen::VectorXd &  x 
) const
overridevirtual

Implements polyfem::solver::Parametrization.

Definition at line 124 of file Parametrizations.cpp.

References from_, power_, to_, and x.

◆ eval()

Eigen::VectorXd polyfem::solver::PowerMap::eval ( const Eigen::VectorXd &  x) const
overridevirtual

Implements polyfem::solver::Parametrization.

Definition at line 112 of file Parametrizations.cpp.

References from_, power_, to_, x, and y.

◆ inverse_eval()

Eigen::VectorXd polyfem::solver::PowerMap::inverse_eval ( const Eigen::VectorXd &  y)
overridevirtual

Reimplemented from polyfem::solver::Parametrization.

Definition at line 100 of file Parametrizations.cpp.

References from_, power_, to_, and y.

◆ size()

int polyfem::solver::PowerMap::size ( const int  x_size) const
inlineoverridevirtual

Implements polyfem::solver::Parametrization.

Definition at line 66 of file Parametrizations.hpp.

Member Data Documentation

◆ from_

const int polyfem::solver::PowerMap::from_
private

Definition at line 73 of file Parametrizations.hpp.

Referenced by apply_jacobian(), eval(), inverse_eval(), and PowerMap().

◆ power_

const double polyfem::solver::PowerMap::power_
private

Definition at line 72 of file Parametrizations.hpp.

Referenced by apply_jacobian(), eval(), inverse_eval(), and PowerMap().

◆ to_

const int polyfem::solver::PowerMap::to_
private

Definition at line 73 of file Parametrizations.hpp.

Referenced by apply_jacobian(), eval(), inverse_eval(), and PowerMap().


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