1.4.0
CCC
 
ClassicalPolynomial Class Reference

#include <ClassicalPolynomial.hpp>

Inheritance diagram for ClassicalPolynomial:
APolynomial AStringable ICloneable

Public Member Functions

 ClassicalPolynomial ()
 
 ClassicalPolynomial (const VectorDouble &)
 
virtual ~ClassicalPolynomial ()
 
double eval (double x) const override
 ICloneable interface. More...
 
void evalDerivOp (ShiftOpCs *shiftOp, const Eigen::VectorXd &inv, Eigen::VectorXd &outv, int iapex, int igparam) const
 
void evalDerivOpOptim (ShiftOpCs *shiftOp, Eigen::VectorXd &temp1, Eigen::VectorXd &temp2, Eigen::VectorXd &outv, const std::vector< Eigen::VectorXd > &workpoly, int iapex, int igparam) const
 
void evalOpTraining (MatrixSparse *Op, const Eigen::VectorXd &inv, std::vector< Eigen::VectorXd > &store, Eigen::VectorXd &work) const override
 
void evalOpCumul (MatrixSparse *Op, const Eigen::VectorXd &inv, Eigen::VectorXd &outv) const
 
void evalOp (MatrixSparse *Op, const Eigen::VectorXd &inv, Eigen::VectorXd &outv) const override
 
void addEvalOp (ALinearOp *Op, const Eigen::VectorXd &inv, Eigen::VectorXd &outv) const override
 
- Public Member Functions inherited from APolynomial
 APolynomial ()
 
 APolynomial (const VectorDouble &coeffs)
 
 APolynomial (const APolynomial &m)
 
APolynomialoperator= (const APolynomial &p)
 
virtual ~APolynomial ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
void init (const VectorDouble &coeffs)
 
virtual void evalOp (MatrixSparse *Op, const VectorDouble &inv, VectorDouble &outv) const
 
Eigen::VectorXd evalOp (MatrixSparse *Op, const Eigen::VectorXd &inv) const
 
VectorDouble getCoeffs () const
 
void setCoeffs (const VectorDouble &coeffs)
 
int getDegree () const
 
virtual int fit (const std::function< double(double)> &f, double from=0., double to=1., double tol=EPSILON5)
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 

Static Public Member Functions

static void evalDerivOp (ShiftOpCs *shiftOp, const VectorDouble &inv, VectorDouble &outv, int iapex, int igparam)
 
static void evalDerivOpOptim (ShiftOpCs *shiftOp, VectorDouble &temp1, VectorDouble &temp2, VectorDouble &outv, const VectorVectorDouble &workpoly, int iapex, int igparam)
 

Constructor & Destructor Documentation

◆ ClassicalPolynomial() [1/2]

ClassicalPolynomial::ClassicalPolynomial ( )

◆ ClassicalPolynomial() [2/2]

ClassicalPolynomial::ClassicalPolynomial ( const VectorDouble coeffs)

◆ ~ClassicalPolynomial()

ClassicalPolynomial::~ClassicalPolynomial ( )
virtual

Member Function Documentation

◆ addEvalOp()

void ClassicalPolynomial::addEvalOp ( ALinearOp Op,
const Eigen::VectorXd &  inv,
Eigen::VectorXd &  outv 
) const
overridevirtual

Implements APolynomial.

◆ eval()

double ClassicalPolynomial::eval ( double  x) const
overridevirtual

ICloneable interface.

Implements APolynomial.

◆ evalDerivOp() [1/2]

void ClassicalPolynomial::evalDerivOp ( ShiftOpCs shiftOp,
const Eigen::VectorXd &  inv,
Eigen::VectorXd &  outv,
int  iapex,
int  igparam 
) const

◆ evalDerivOp() [2/2]

void ClassicalPolynomial::evalDerivOp ( ShiftOpCs shiftOp,
const VectorDouble inv,
VectorDouble outv,
int  iapex,
int  igparam 
)
static

◆ evalDerivOpOptim() [1/2]

void ClassicalPolynomial::evalDerivOpOptim ( ShiftOpCs shiftOp,
Eigen::VectorXd &  temp1,
Eigen::VectorXd &  temp2,
Eigen::VectorXd &  outv,
const std::vector< Eigen::VectorXd > &  workpoly,
int  iapex,
int  igparam 
) const

◆ evalDerivOpOptim() [2/2]

void ClassicalPolynomial::evalDerivOpOptim ( ShiftOpCs shiftOp,
VectorDouble temp1,
VectorDouble temp2,
VectorDouble outv,
const VectorVectorDouble workpoly,
int  iapex,
int  igparam 
)
static

◆ evalOp()

void ClassicalPolynomial::evalOp ( MatrixSparse Op,
const Eigen::VectorXd &  inv,
Eigen::VectorXd &  outv 
) const
overridevirtual

Implements APolynomial.

◆ evalOpCumul()

void ClassicalPolynomial::evalOpCumul ( MatrixSparse Op,
const Eigen::VectorXd &  inv,
Eigen::VectorXd &  outv 
) const

◆ evalOpTraining()

void ClassicalPolynomial::evalOpTraining ( MatrixSparse Op,
const Eigen::VectorXd &  inv,
std::vector< Eigen::VectorXd > &  store,
Eigen::VectorXd &  work 
) const
overridevirtual

Reimplemented from APolynomial.


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