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

#include <Parametrizations.hpp>

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

Public Member Functions

 SliceMap (const int from=-1, const int to=-1, const int total=-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 int total_
 

Detailed Description

Definition at line 124 of file Parametrizations.hpp.

Constructor & Destructor Documentation

◆ SliceMap()

polyfem::solver::SliceMap::SliceMap ( const int  from = -1,
const int  to = -1,
const int  total = -1 
)

Definition at line 319 of file Parametrizations.cpp.

References from_, polyfem::log_and_throw_adjoint_error(), and to_.

Here is the call graph for this function:

Member Function Documentation

◆ apply_jacobian()

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

Implements polyfem::solver::Parametrization.

Definition at line 344 of file Parametrizations.cpp.

References from_, to_, and x.

◆ eval()

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

Implements polyfem::solver::Parametrization.

Definition at line 340 of file Parametrizations.cpp.

References from_, to_, and x.

◆ inverse_eval()

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

Reimplemented from polyfem::solver::Parametrization.

Definition at line 325 of file Parametrizations.cpp.

References from_, polyfem::log_and_throw_adjoint_error(), size(), to_, total_, and y.

Here is the call graph for this function:

◆ size()

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

Implements polyfem::solver::Parametrization.

Definition at line 129 of file Parametrizations.hpp.

References from_, and to_.

Referenced by inverse_eval().

Here is the caller graph for this function:

Member Data Documentation

◆ from_

const int polyfem::solver::SliceMap::from_
private

Definition at line 136 of file Parametrizations.hpp.

Referenced by apply_jacobian(), eval(), inverse_eval(), size(), and SliceMap().

◆ to_

const int polyfem::solver::SliceMap::to_
private

Definition at line 136 of file Parametrizations.hpp.

Referenced by apply_jacobian(), eval(), inverse_eval(), size(), and SliceMap().

◆ total_

const int polyfem::solver::SliceMap::total_
private

Definition at line 136 of file Parametrizations.hpp.

Referenced by inverse_eval().


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