1.3.2
CCC
 
APolynomial Class Referenceabstract

#include <APolynomial.hpp>

Inheritance diagram for APolynomial:
AStringable ICloneable Chebychev ClassicalPolynomial

Public Member Functions

 APolynomial ()
 
 APolynomial (VectorDouble coeffs)
 
 APolynomial (const APolynomial &p)
 
APolynomialoperator= (const APolynomial &p)
 
virtual ~APolynomial ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
void init (VectorDouble coeffs)
 
virtual double eval (double x) const =0
 
virtual void evalOp (MatrixSparse *Op, const VectorDouble &inv, VectorDouble &outv) const
 
virtual void evalOpTraining (MatrixSparse *Op, const VectorDouble &inv, VectorVectorDouble &outv, VectorDouble &work) const
 
VectorDouble evalOp (MatrixSparse *Op, const VectorDouble &inv) const
 
VectorDouble getCoeffs () const
 
void setCoeffs (const VectorDouble coeffs)
 
int getDegree () const
 
virtual void evalOp (const ALinearOpMulti *Op, const VectorVectorDouble &inv, VectorVectorDouble &outv) const =0
 
virtual int fit (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 ( VectorDouble  coeffs)

◆ APolynomial() [3/3]

APolynomial::APolynomial ( const APolynomial p)

◆ ~APolynomial()

APolynomial::~APolynomial ( )
virtual

Member Function Documentation

◆ eval()

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

Implemented in ClassicalPolynomial, and Chebychev.

◆ evalOp() [1/3]

virtual void APolynomial::evalOp ( const ALinearOpMulti Op,
const VectorVectorDouble inv,
VectorVectorDouble outv 
) const
pure virtual

Implemented in Chebychev, and ClassicalPolynomial.

◆ evalOp() [2/3]

VectorDouble APolynomial::evalOp ( MatrixSparse Op,
const VectorDouble inv 
) const

◆ evalOp() [3/3]

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

Reimplemented in ClassicalPolynomial, and Chebychev.

◆ evalOpTraining()

virtual void APolynomial::evalOpTraining ( MatrixSparse Op,
const VectorDouble inv,
VectorVectorDouble outv,
VectorDouble work 
) const
inlinevirtual

Reimplemented in ClassicalPolynomial.

◆ fit()

virtual int APolynomial::fit ( 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 ( 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: