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

#include <Parametrizations.hpp>

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

Public Member Functions

 Scaling (const double scale, 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 int from_
 
const int to_
 
const double scale_
 

Detailed Description

Definition at line 42 of file Parametrizations.hpp.

Constructor & Destructor Documentation

◆ Scaling()

polyfem::solver::Scaling::Scaling ( const double  scale,
const int  from = -1,
const int  to = -1 
)

Definition at line 57 of file Parametrizations.cpp.

References from_, scale_, and to_.

Member Function Documentation

◆ apply_jacobian()

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

Implements polyfem::solver::Parametrization.

Definition at line 88 of file Parametrizations.cpp.

References from_, scale_, and to_.

◆ eval()

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

Implements polyfem::solver::Parametrization.

Definition at line 76 of file Parametrizations.cpp.

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

◆ inverse_eval()

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

Reimplemented from polyfem::solver::Parametrization.

Definition at line 64 of file Parametrizations.cpp.

References from_, scale_, to_, and y.

◆ size()

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

Implements polyfem::solver::Parametrization.

Definition at line 47 of file Parametrizations.hpp.

Member Data Documentation

◆ from_

const int polyfem::solver::Scaling::from_
private

Definition at line 53 of file Parametrizations.hpp.

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

◆ scale_

const double polyfem::solver::Scaling::scale_
private

Definition at line 54 of file Parametrizations.hpp.

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

◆ to_

const int polyfem::solver::Scaling::to_
private

Definition at line 53 of file Parametrizations.hpp.

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


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