PolyFEM
Loading...
Searching...
No Matches
polyfem::utils::PiecewiseCubicInterpolation Class Reference

#include <Interpolation.hpp>

Inheritance diagram for polyfem::utils::PiecewiseCubicInterpolation:
[legend]
Collaboration diagram for polyfem::utils::PiecewiseCubicInterpolation:
[legend]

Public Member Functions

void init (const json &params) override
 
const Eigen::MatrixXd & coeffs () const
 
- Public Member Functions inherited from polyfem::utils::PiecewiseInterpolation
double eval (const double t) const override
 
double extend (const double t) const
 
- Public Member Functions inherited from polyfem::utils::Interpolation
virtual ~Interpolation ()
 

Protected Member Functions

double eval_piece (const double t, const int i) const override
 
double dy_dt_piece (const double t, const int i) const override
 
- Protected Member Functions inherited from polyfem::utils::PiecewiseInterpolation
double dy_dt (const double t) const
 

Protected Attributes

Eigen::MatrixXd coeffs_
 

Additional Inherited Members

- Public Types inherited from polyfem::utils::PiecewiseInterpolation
enum class  Extend { CONSTANT , EXTRAPOLATE , REPEAT , REPEAT_OFFSET }
 
- Static Public Member Functions inherited from polyfem::utils::Interpolation
static std::shared_ptr< Interpolationbuild (const json &params)
 
- Public Attributes inherited from polyfem::utils::PiecewiseInterpolation
std::vector< double > points_
 
std::vector< double > values_
 
Extend extend_
 

Detailed Description

Definition at line 84 of file Interpolation.hpp.

Member Function Documentation

◆ coeffs()

const Eigen::MatrixXd & polyfem::utils::PiecewiseCubicInterpolation::coeffs ( ) const
inline

Definition at line 89 of file Interpolation.hpp.

References coeffs_.

◆ dy_dt_piece()

double polyfem::utils::PiecewiseCubicInterpolation::dy_dt_piece ( const double  t,
const int  i 
) const
overrideprotectedvirtual

Implements polyfem::utils::PiecewiseInterpolation.

Definition at line 278 of file Interpolation.cpp.

References coeffs_.

◆ eval_piece()

double polyfem::utils::PiecewiseCubicInterpolation::eval_piece ( const double  t,
const int  i 
) const
overrideprotectedvirtual

Implements polyfem::utils::PiecewiseInterpolation.

Definition at line 272 of file Interpolation.cpp.

References coeffs_.

◆ init()

Member Data Documentation

◆ coeffs_

Eigen::MatrixXd polyfem::utils::PiecewiseCubicInterpolation::coeffs_
protected

Definition at line 95 of file Interpolation.hpp.

Referenced by coeffs(), dy_dt_piece(), eval_piece(), and init().


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