|
Grid 0.7.0
|
#include <RemezGeneral.h>
Public Types | |
| enum | PolyType { Even , Odd , Full } |
Public Member Functions | |
| AlgRemezGeneral (double lower, double upper, long prec, bigfloat(*f)(bigfloat x, void *data), void *data) | |
| int | getDegree (void) const |
| void | setBounds (double lower, double upper) |
| void | getBounds (double &lower, double &upper) const |
| double | generateApprox (int num_degree, int den_degree, PolyType num_type, PolyType den_type, const double tolerance=1e-15, const int report_freq=1000) |
| double | generateApprox (int num_degree, int den_degree, const double tolerance=1e-15, const int report_freq=1000) |
| double | evaluateApprox (double x) const |
| double | evaluateInverseApprox (double x) const |
| double | evaluateFunc (double x) const |
| double | evaluateInverseFunc (double x) const |
| void | csv (std::ostream &os=std::cout) const |
| double | getCoeffNum (const int i) const |
| double | getCoeffDen (const int i) const |
Private Member Functions | |
| void | setupPolyProperties (int num_degree, int den_degree, PolyType num_type_in, PolyType den_type_in) |
| void | initialGuess () |
| void | stpini () |
| void | reinitializeAlgorithm () |
| void | equations () |
| void | search () |
| bigfloat | func (bigfloat x) const |
| bigfloat | getErr (bigfloat x, int *sign) const |
| int | simq () |
| bigfloat | approx (bigfloat x) const |
Private Attributes | |
| bigfloat(* | f )(bigfloat x, void *data) |
| void * | data |
| std::vector< bigfloat > | param |
| bigfloat | norm |
| int | n |
| int | d |
| int | pow_n |
| int | pow_d |
| PolyType | num_type |
| PolyType | den_type |
| std::vector< int > | num_pows |
| std::vector< int > | den_pows |
| bigfloat | apstrt |
| bigfloat | apwidt |
| bigfloat | apend |
| int | nd1 |
| int | iter |
| std::vector< bigfloat > | xx |
| std::vector< bigfloat > | mm |
| std::vector< bigfloat > | step |
| bigfloat | delta |
| bigfloat | spread |
| std::vector< bigfloat > | yy |
| std::vector< bigfloat > | A |
| std::vector< bigfloat > | B |
| std::vector< int > | IPS |
| int | neq |
| long | prec |
Definition at line 21 of file RemezGeneral.h.
| Enumerator | |
|---|---|
| Even | |
| Odd | |
| Full | |
Definition at line 23 of file RemezGeneral.h.
|
private |
|
private |
Definition at line 159 of file RemezGeneral.cc.
References apend, apstrt, delta, neq, step, and xx.
Referenced by reinitializeAlgorithm().
|
private |
|
private |
|
private |
Definition at line 90 of file RemezGeneral.h.
Referenced by equations(), evaluateFunc(), evaluateInverseFunc(), and getErr().
Definition at line 318 of file RemezGeneral.cc.
References approx(), f, and func().
Referenced by csv(), generateApprox(), and search().
|
private |
Definition at line 332 of file RemezGeneral.cc.
References A, B, IPS, n, neq, param, and sum().
Referenced by equations().
Definition at line 304 of file RemezGeneral.cc.
References d, den_pows, n, num_pows, param, pow_d, and pow_n.
Referenced by evaluateApprox(), evaluateInverseApprox(), and getErr().
|
inline |
Definition at line 108 of file RemezGeneral.h.
|
inline |
Definition at line 113 of file RemezGeneral.h.
|
inline |
Definition at line 120 of file RemezGeneral.h.
| double AlgRemezGeneral::generateApprox | ( | int | num_degree, |
| int | den_degree, | ||
| PolyType | num_type, | ||
| PolyType | den_type, | ||
| const double | tolerance = 1e-15, | ||
| const int | report_freq = 1000 ) |
Definition at line 96 of file RemezGeneral.cc.
References delta, equations(), getErr(), iter, mm, reinitializeAlgorithm(), search(), setupPolyProperties(), and spread.
Referenced by computeZmobiusOmega(), and generateApprox().
|
inline |
Definition at line 130 of file RemezGeneral.h.
References Full, and generateApprox().
|
inline |
Definition at line 137 of file RemezGeneral.h.
References approx().
Referenced by computeZmobiusOmega(), and csv().
|
inline |
Definition at line 142 of file RemezGeneral.h.
References approx().
|
inline |
|
inline |
Definition at line 152 of file RemezGeneral.h.
References func().
| void AlgRemezGeneral::csv | ( | std::ostream & | os = std::cout | ) | const |
Definition at line 441 of file RemezGeneral.cc.
References apend, apstrt, evaluateApprox(), evaluateFunc(), f, getCoeffDen(), getCoeffNum(), getErr(), mm, neq, pow_d, and pow_n.
Referenced by computeZmobiusOmega().
|
inline |
Definition at line 160 of file RemezGeneral.h.
References num_pows, and param.
Referenced by computeZmobiusOmega(), and csv().
|
inline |
Definition at line 164 of file RemezGeneral.h.
References den_pows, n, param, and pow_d.
Referenced by computeZmobiusOmega(), and csv().
Definition at line 28 of file RemezGeneral.h.
Referenced by AlgRemezGeneral(), csv(), func(), and getErr().
|
private |
Definition at line 29 of file RemezGeneral.h.
Referenced by AlgRemezGeneral(), and func().
|
private |
Definition at line 32 of file RemezGeneral.h.
Referenced by approx(), getCoeffDen(), getCoeffNum(), reinitializeAlgorithm(), and simq().
|
private |
Definition at line 33 of file RemezGeneral.h.
|
private |
Definition at line 36 of file RemezGeneral.h.
Referenced by AlgRemezGeneral(), approx(), equations(), getCoeffDen(), getDegree(), reinitializeAlgorithm(), setupPolyProperties(), and simq().
|
private |
Definition at line 36 of file RemezGeneral.h.
Referenced by AlgRemezGeneral(), approx(), equations(), getDegree(), reinitializeAlgorithm(), and setupPolyProperties().
|
private |
Definition at line 38 of file RemezGeneral.h.
Referenced by AlgRemezGeneral(), approx(), csv(), equations(), and setupPolyProperties().
|
private |
Definition at line 38 of file RemezGeneral.h.
Referenced by AlgRemezGeneral(), approx(), csv(), equations(), getCoeffDen(), and setupPolyProperties().
|
private |
Definition at line 41 of file RemezGeneral.h.
Referenced by setupPolyProperties().
|
private |
Definition at line 42 of file RemezGeneral.h.
Referenced by setupPolyProperties().
|
private |
Definition at line 43 of file RemezGeneral.h.
Referenced by approx(), equations(), getCoeffNum(), and setupPolyProperties().
|
private |
Definition at line 44 of file RemezGeneral.h.
Referenced by approx(), equations(), getCoeffDen(), and setupPolyProperties().
|
private |
Definition at line 47 of file RemezGeneral.h.
Referenced by AlgRemezGeneral(), csv(), getBounds(), initialGuess(), search(), setBounds(), and stpini().
|
private |
Definition at line 47 of file RemezGeneral.h.
Referenced by AlgRemezGeneral(), initialGuess(), and setBounds().
|
private |
Definition at line 47 of file RemezGeneral.h.
Referenced by AlgRemezGeneral(), csv(), getBounds(), initialGuess(), search(), setBounds(), and stpini().
|
private |
Definition at line 50 of file RemezGeneral.h.
|
private |
Definition at line 50 of file RemezGeneral.h.
Referenced by generateApprox(), and reinitializeAlgorithm().
|
private |
Definition at line 51 of file RemezGeneral.h.
Referenced by equations(), initialGuess(), reinitializeAlgorithm(), search(), and stpini().
|
private |
Definition at line 52 of file RemezGeneral.h.
Referenced by csv(), generateApprox(), initialGuess(), reinitializeAlgorithm(), and search().
|
private |
Definition at line 53 of file RemezGeneral.h.
Referenced by reinitializeAlgorithm(), search(), and stpini().
|
private |
Definition at line 55 of file RemezGeneral.h.
Referenced by generateApprox(), search(), and stpini().
|
private |
Definition at line 55 of file RemezGeneral.h.
Referenced by generateApprox(), reinitializeAlgorithm(), and search().
|
private |
Definition at line 58 of file RemezGeneral.h.
Referenced by reinitializeAlgorithm(), and search().
|
private |
Definition at line 61 of file RemezGeneral.h.
Referenced by equations(), reinitializeAlgorithm(), and simq().
|
private |
Definition at line 62 of file RemezGeneral.h.
Referenced by equations(), reinitializeAlgorithm(), and simq().
|
private |
Definition at line 63 of file RemezGeneral.h.
Referenced by reinitializeAlgorithm(), and simq().
|
private |
Definition at line 66 of file RemezGeneral.h.
Referenced by csv(), equations(), initialGuess(), reinitializeAlgorithm(), search(), simq(), and stpini().
|
private |
Definition at line 69 of file RemezGeneral.h.
Referenced by AlgRemezGeneral().