|
PolyFEM
|
#include <Parametrizations.hpp>
Public Member Functions | |
| PerBody2PerElem (const mesh::Mesh &mesh) | |
| int | size (const int x_size) const override |
| Compute DOF of y given DOF of x. | |
| 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 |
| virtual Eigen::VectorXd | inverse_eval (const Eigen::VectorXd &y) |
| Eval x = f^-1 (y). | |
Private Attributes | |
| const mesh::Mesh & | mesh_ |
| int | full_size_ |
| int | reduced_size_ |
| std::map< int, std::array< int, 2 > > | body_id_map_ |
Definition at line 99 of file Parametrizations.hpp.
| polyfem::solver::PerBody2PerElem::PerBody2PerElem | ( | const mesh::Mesh & | mesh | ) |
Definition at line 260 of file Parametrizations.cpp.
References body_id_map_, polyfem::mesh::Mesh::get_body_id(), polyfem::logger(), polyfem::mesh::Mesh::n_elements(), and reduced_size_.
|
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 297 of file Parametrizations.cpp.
References body_id_map_, full_size_, polyfem::mesh::Mesh::get_body_id(), mesh_, polyfem::mesh::Mesh::n_elements(), reduced_size_, size(), and x.
|
overridevirtual |
Eval y = f(x).
| [in] | x | x. |
Implements polyfem::solver::Parametrization.
Definition at line 275 of file Parametrizations.cpp.
References body_id_map_, full_size_, polyfem::mesh::Mesh::get_body_id(), mesh_, polyfem::mesh::Mesh::n_elements(), reduced_size_, size(), x, and y.
|
overridevirtual |
Compute DOF of y given DOF of x.
| [in] | x_size | The DOF of x. |
Implements polyfem::solver::Parametrization.
Definition at line 291 of file Parametrizations.cpp.
References full_size_, and reduced_size_.
Referenced by apply_jacobian(), and eval().
|
private |
Definition at line 112 of file Parametrizations.hpp.
Referenced by apply_jacobian(), eval(), and PerBody2PerElem().
|
private |
Definition at line 110 of file Parametrizations.hpp.
Referenced by apply_jacobian(), eval(), and size().
|
private |
Definition at line 109 of file Parametrizations.hpp.
Referenced by apply_jacobian(), and eval().
|
private |
Definition at line 111 of file Parametrizations.hpp.
Referenced by apply_jacobian(), eval(), PerBody2PerElem(), and size().