1.4.1
CCC
 
APolynomial Class Referenceabstract

#include <APolynomial.hpp>

Inheritance diagram for APolynomial:
AStringable ICloneable Chebychev ClassicalPolynomial

Public Member Functions

 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 double eval (double x) const =0
 
virtual void evalOp (MatrixSparse *Op, const VectorDouble &inv, VectorDouble &outv) const
 
virtual void evalOp (MatrixSparse *Op, const Eigen::VectorXd &inv, Eigen::VectorXd &outv) const =0
 
virtual void evalOpTraining (MatrixSparse *Op, const Eigen::VectorXd &inv, std::vector< Eigen::VectorXd > &outv, Eigen::VectorXd &work) const
 
Eigen::VectorXd evalOp (MatrixSparse *Op, const Eigen::VectorXd &inv) const
 
virtual void addEvalOp (ALinearOp *Op, const Eigen::VectorXd &inv, Eigen::VectorXd &outv) const =0
 
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
 

Constructor & Destructor Documentation

◆ APolynomial() [1/3]

APolynomial::APolynomial ( )

◆ APolynomial() [2/3]

APolynomial::APolynomial ( const VectorDouble coeffs)

◆ APolynomial() [3/3]

APolynomial::APolynomial ( const APolynomial m)

◆ ~APolynomial()

APolynomial::~APolynomial ( )
virtual

Member Function Documentation

◆ addEvalOp()

virtual void APolynomial::addEvalOp ( ALinearOp Op,
const Eigen::VectorXd &  inv,
Eigen::VectorXd &  outv 
) const
pure virtual

Implemented in ClassicalPolynomial, and Chebychev.

◆ eval()

virtual double APolynomial::eval ( double  x) const
pure virtual

Implemented in ClassicalPolynomial, and Chebychev.

◆ evalOp() [1/3]

Eigen::VectorXd APolynomial::evalOp ( MatrixSparse Op,
const Eigen::VectorXd &  inv 
) const

◆ evalOp() [2/3]

virtual void APolynomial::evalOp ( MatrixSparse Op,
const Eigen::VectorXd &  inv,
Eigen::VectorXd &  outv 
) const
pure virtual

Implemented in Chebychev, and ClassicalPolynomial.

◆ evalOp() [3/3]

virtual void APolynomial::evalOp ( MatrixSparse Op,
const VectorDouble inv,
VectorDouble outv 
) const
inlinevirtual

◆ evalOpTraining()

virtual void APolynomial::evalOpTraining ( MatrixSparse Op,
const Eigen::VectorXd &  inv,
std::vector< Eigen::VectorXd > &  outv,
Eigen::VectorXd &  work 
) const
inlinevirtual

Reimplemented in ClassicalPolynomial.

◆ fit()

virtual int APolynomial::fit ( const std::function< double(double)> &  f,
double  from = 0.,
double  to = 1.,
double  tol = EPSILON5 
)
inlinevirtual

Reimplemented in Chebychev.

◆ getCoeffs()

VectorDouble APolynomial::getCoeffs ( ) const
inline

◆ getDegree()

int APolynomial::getDegree ( ) const
inline

◆ init()

void APolynomial::init ( const VectorDouble coeffs)

◆ operator=()

APolynomial & APolynomial::operator= ( const APolynomial p)

◆ setCoeffs()

void APolynomial::setCoeffs ( const VectorDouble coeffs)
inline

◆ toString()

String APolynomial::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface for AStringable.

Reimplemented from AStringable.


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