|
PolyFEM
|
#include <SplineParametrizations.hpp>
Public Member Functions | |
| BSplineParametrization2DTo3D (const Eigen::MatrixXd &initial_control_point_grid, const Eigen::VectorXd &knots_u, const Eigen::VectorXd &knots_v, const bool exclude_ends=true) | |
| Eigen::VectorXd | inverse_eval (const Eigen::VectorXd &y) override |
| Eval x = f^-1 (y). | |
| 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_full, 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 Eigen::MatrixXd | initial_control_point_grid_ |
| const Eigen::VectorXd | knots_u_ |
| const Eigen::VectorXd | knots_v_ |
| std::shared_ptr< BSplineParametrization3D > | spline_ |
| Eigen::VectorXd | u_ |
| Eigen::VectorXd | v_ |
| bool | invoked_inverse_eval_ = false |
| const bool | exclude_ends_ |
Definition at line 44 of file SplineParametrizations.hpp.
|
inline |
Definition at line 47 of file SplineParametrizations.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 152 of file SplineParametrizations.cpp.
|
overridevirtual |
Eval y = f(x).
| [in] | x | x. |
Implements polyfem::solver::Parametrization.
Definition at line 145 of file SplineParametrizations.cpp.
References invoked_inverse_eval_, and polyfem::log_and_throw_error().
|
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 138 of file SplineParametrizations.cpp.
References initial_control_point_grid_, invoked_inverse_eval_, knots_u_, knots_v_, spline_, and y.
|
inlineoverridevirtual |
Compute DOF of y given DOF of x.
| [in] | x_size | The DOF of x. |
Implements polyfem::solver::Parametrization.
Definition at line 51 of file SplineParametrizations.hpp.
|
private |
Definition at line 67 of file SplineParametrizations.hpp.
|
private |
Definition at line 56 of file SplineParametrizations.hpp.
Referenced by inverse_eval().
|
private |
Definition at line 65 of file SplineParametrizations.hpp.
Referenced by eval(), and inverse_eval().
|
private |
Definition at line 57 of file SplineParametrizations.hpp.
Referenced by inverse_eval().
|
private |
Definition at line 58 of file SplineParametrizations.hpp.
Referenced by inverse_eval().
|
private |
Definition at line 60 of file SplineParametrizations.hpp.
Referenced by inverse_eval().
|
private |
Definition at line 62 of file SplineParametrizations.hpp.
Referenced by size().
|
private |
Definition at line 63 of file SplineParametrizations.hpp.
Referenced by size().