|
PolyFEM
|
#include <Parametrizations.hpp>
Public Member Functions | |
| PowerMap (const double power=1, const int from=-1, const int to=-1) | |
| int | size (const int x_size) const override |
| Compute DOF of y given DOF of x. | |
| Eigen::VectorXd | inverse_eval (const Eigen::VectorXd &y) override |
| Eval x = f^-1 (y). | |
| Eigen::VectorXd | eval (const Eigen::VectorXd &x) const override |
| Eval y = f(x). | |
| Eigen::VectorXd | apply_jacobian (const Eigen::VectorXd &grad, const Eigen::VectorXd &x) const override |
| Apply jacobian for chain rule. | |
Public Member Functions inherited from polyfem::solver::Parametrization | |
| virtual | ~Parametrization ()=default |
Private Attributes | |
| const double | power_ |
| const int | from_ |
| const int | to_ |
Definition at line 48 of file Parametrizations.hpp.
|
inline |
Definition at line 51 of file Parametrizations.hpp.
|
overridevirtual |
Apply jacobian for chain rule.
Let g(y) = g(f(x)). Given ∂g/∂y, compute ∂g/∂x = ∂g/∂y * ∂y/∂x.
| [in] | grad_full | ∂g/∂y. |
| [in] | x | Where ∂g/∂x is evaluated. |
Implements polyfem::solver::Parametrization.
Definition at line 119 of file Parametrizations.cpp.
|
overridevirtual |
Eval y = f(x).
| [in] | x | x. |
Implements polyfem::solver::Parametrization.
Definition at line 107 of file Parametrizations.cpp.
|
overridevirtual |
Eval x = f^-1 (y).
This is not a strict inverse in mathematical sense, one may choose "reasonable" x even if f is not one-to-one.
| [in] | y | y. |
| std::runtime_error | Throw if not implemented. |
Reimplemented from polyfem::solver::Parametrization.
Definition at line 95 of file Parametrizations.cpp.
|
inlineoverridevirtual |
Compute DOF of y given DOF of x.
| [in] | x_size | The DOF of x. |
Implements polyfem::solver::Parametrization.
Definition at line 57 of file Parametrizations.hpp.
|
private |
Definition at line 64 of file Parametrizations.hpp.
Referenced by apply_jacobian(), eval(), inverse_eval(), and PowerMap().
|
private |
Definition at line 63 of file Parametrizations.hpp.
Referenced by apply_jacobian(), eval(), inverse_eval(), and PowerMap().
|
private |
Definition at line 64 of file Parametrizations.hpp.
Referenced by apply_jacobian(), eval(), inverse_eval(), and PowerMap().