![]() |
My Project
|
class to evaluate a polynomial at points More...
#include <cf_eval.h>
Protected Attributes | |
| CFArray | values |
Friends | |
| OSTREAM & | operator<< (OSTREAM &s, const Evaluation &e) |
| OSTREAM & | operator<< (OSTREAM &s, const Evaluation &e) |
| OSTREAM & | operator<< (OSTREAM &s, const Evaluation &e) |
class to evaluate a polynomial at points
inline CanonicalForm abs ( const CanonicalForm & f )
abs() - return absolute value of `f'.
The absolute value is defined in terms of the function sign()'. If it reports negative sign for f' than -f' is returned, otherwise f'.
This behaviour is most useful for integers and rationals. But it may be used to sign-normalize the leading coefficient of arbitrary polynomials, too.
f: CurrentPP
**/ inline CanonicalForm abs ( const CanonicalForm & f ) { it is not only more general to use sign()' instead of a // direct comparison f < 0', it is faster, too if ( sign( f ) < 0 ) return -f; else return f; } }}}
/* stuff included from ./cf_eval.h class to evaluate a polynomial at points
abs() - return absolute value of `f'.
The absolute value is defined in terms of the function sign()'. If it reports negative sign for f' than -f' is returned, otherwise f'.
This behaviour is most useful for integers and rationals. But it may be used to sign-normalize the leading coefficient of arbitrary polynomials, too.
f: CurrentPP
**/ inline CanonicalForm abs ( const CanonicalForm & f ) { it is not only more general to use sign()' instead of a // direct comparison f < 0', it is faster, too if ( sign( f ) < 0 ) return -f; else return f; } }}}
/* stuff included from ./cf_eval.h class to evaluate a polynomial at points
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Reimplemented in REvaluation, REvaluation, and REvaluation.
Definition at line 43 of file cf_eval.cc.
|
virtual |
Reimplemented in REvaluation, REvaluation, and REvaluation.
|
virtual |
Reimplemented in REvaluation, REvaluation, and REvaluation.
| CanonicalForm Evaluation::operator() | ( | const CanonicalForm & | f | ) | const |
Definition at line 24 of file cf_eval.cc.
| CanonicalForm Evaluation::operator() | ( | const CanonicalForm & | f | ) | const |
| CanonicalForm Evaluation::operator() | ( | const CanonicalForm & | f | ) | const |
| CanonicalForm Evaluation::operator() | ( | const CanonicalForm & | f, |
| int | i, | ||
| int | j ) const |
| CanonicalForm Evaluation::operator() | ( | const CanonicalForm & | f, |
| int | i, | ||
| int | j ) const |
| CanonicalForm Evaluation::operator() | ( | const CanonicalForm & | f, |
| int | i, | ||
| int | j ) const |
| Evaluation & Evaluation::operator= | ( | const Evaluation & | e | ) |
Definition at line 15 of file cf_eval.cc.
| Evaluation & Evaluation::operator= | ( | const Evaluation & | e | ) |
| Evaluation & Evaluation::operator= | ( | const Evaluation & | e | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Evaluation::setValue | ( | int | i, |
| const CanonicalForm & | f ) |
| void Evaluation::setValue | ( | int | i, |
| const CanonicalForm & | f ) |
| void Evaluation::setValue | ( | int | i, |
| const CanonicalForm & | f ) |
|
friend |
Definition at line 59 of file cf_eval.cc.
|
friend |
|
friend |