|
PolyFEM
|
Reusable element matrix with inline storage for small blocks and a dynamic fallback for high-order elements. More...
#include <LocalHessian.hpp>
Public Types | |
| using | SmallMatrix = Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor, SmallDofs, SmallDofs > |
Public Member Functions | |
| void | resize (const Eigen::Index rows, const Eigen::Index cols) |
| Eigen::Index | rows () const |
| Eigen::Index | cols () const |
| template<typename Derived > | |
| void | assign (const Eigen::MatrixBase< Derived > &matrix) |
| template<typename F > | |
| decltype(auto) | visit (F &&f) |
| template<typename F > | |
| decltype(auto) | visit (F &&f) const |
Static Public Attributes | |
| static constexpr int | SmallDofs = 30 |
Private Attributes | |
| SmallMatrix | small_ |
| Eigen::MatrixXd | large_ |
| bool | use_small_ = true |
Reusable element matrix with inline storage for small blocks and a dynamic fallback for high-order elements.
Visiting exposes the actual Eigen type.
Definition at line 12 of file LocalHessian.hpp.
| using polyfem::assembler::LocalHessian::SmallMatrix = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor, SmallDofs, SmallDofs> |
Definition at line 17 of file LocalHessian.hpp.
|
inline |
Definition at line 34 of file LocalHessian.hpp.
References resize(), and visit().
Referenced by polyfem::hessian_from_energy().
|
inline |
Definition at line 31 of file LocalHessian.hpp.
References large_, small_, and use_small_.
Referenced by resize().
|
inline |
Definition at line 20 of file LocalHessian.hpp.
References cols(), large_, rows(), small_, SmallDofs, and use_small_.
Referenced by polyfem::assembler::FixedCorotational::assemble_hessian(), polyfem::assembler::InversionBarrier::assemble_hessian(), polyfem::assembler::Laplacian::assemble_hessian(), polyfem::assembler::MooneyRivlin3ParamSymbolic::assemble_hessian(), polyfem::assembler::NeoHookeanElasticity::assemble_hessian(), polyfem::assembler::ViscousDamping::assemble_hessian(), polyfem::assembler::ViscousDampingPrev::assemble_hessian(), polyfem::assembler::GenericElastic< Derived >::assemble_hessian_stress_ad(), polyfem::assembler::GenericElastic< Derived >::assemble_hessian_stress_noad(), assign(), and polyfem::solver::NavierStokesFSIForm::second_derivative_unweighted().
|
inline |
Definition at line 30 of file LocalHessian.hpp.
References large_, small_, and use_small_.
Referenced by resize().
Definition at line 41 of file LocalHessian.hpp.
References large_, small_, and use_small_.
Referenced by polyfem::assembler::FixedCorotational::assemble_hessian(), polyfem::assembler::GenericElastic< Derived >::assemble_hessian(), polyfem::assembler::InversionBarrier::assemble_hessian(), polyfem::assembler::Laplacian::assemble_hessian(), polyfem::assembler::MooneyRivlin3ParamSymbolic::assemble_hessian(), polyfem::assembler::NeoHookeanElasticity::assemble_hessian(), polyfem::assembler::SumModel::assemble_hessian(), polyfem::assembler::ViscousDamping::assemble_hessian(), polyfem::assembler::ViscousDampingPrev::assemble_hessian(), polyfem::assembler::GenericElastic< Derived >::assemble_hessian_stress_ad(), polyfem::assembler::GenericElastic< Derived >::assemble_hessian_stress_noad(), assign(), and polyfem::solver::NavierStokesFSIForm::second_derivative_unweighted().
Definition at line 49 of file LocalHessian.hpp.
References large_, small_, and use_small_.
|
private |
|
private |
|
staticconstexpr |
Definition at line 16 of file LocalHessian.hpp.
Referenced by resize().
|
private |