1.1.0
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::APolynomial ( )
APolynomial::APolynomial ( VectorDouble  coeffs)
APolynomial::APolynomial ( const APolynomial p)
APolynomial::~APolynomial ( )
virtual

Member Function Documentation

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

Implemented in Chebychev, and ClassicalPolynomial.

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

Reimplemented in ClassicalPolynomial, and Chebychev.

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

Implemented in Chebychev, and ClassicalPolynomial.

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

Reimplemented in ClassicalPolynomial.

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

Reimplemented in Chebychev.

VectorDouble APolynomial::getCoeffs ( ) const
inline
int APolynomial::getDegree ( ) const
inline
void APolynomial::init ( VectorDouble  coeffs)
APolynomial & APolynomial::operator= ( const APolynomial p)
void APolynomial::setCoeffs ( const VectorDouble  coeffs)
inline
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: