libnum:classes:gear
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| libnum:classes:gear [2026/03/04 15:41] – abc | libnum:classes:gear [2026/03/29 13:53] (current) – abc | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== class Gear; ===== | ===== class Gear; ===== | ||
| - | Namespace NumericMethods\\ | + | Namespace |
| - | See: '' | + | |
| + | See: '' | ||
| class [[# | class [[# | ||
| Line 20: | Line 21: | ||
| | | ||
| void set(int n, GearUserProc* derFunc, GearUserProc* jacFunc); | void set(int n, GearUserProc* derFunc, GearUserProc* jacFunc); | ||
| - | void setCallback(GearEngineCallback& | + | void setCallback(GearEngineCallback& |
| Message solve(const double t_begin, const double t_end, const double* y0); | Message solve(const double t_begin, const double t_end, const double* y0); | ||
| GearEngineContext engineContext; | GearEngineContext engineContext; | ||
| Line 115: | Line 116: | ||
| RHMAX = 1; | RHMAX = 1; | ||
| See Gear Algorithm for details. | See Gear Algorithm for details. | ||
| + | |||
| + | ===== Gear Output ===== | ||
| + | The Output is implemented via // | ||
| + | |||
| + | The //libnum// library includes the following two classes for general useage: // | ||
| + | * standard C output stream stdout (// | ||
| + | * string buffer (// | ||
| + | * file (// | ||
| + | * and the like | ||
| + | |||
| + | The // | ||
| + | |||
| + | class GearPrintToStream : public GearEngineCallback | ||
| + | { | ||
| + | public: | ||
| + | GearPrintToStream(std:: | ||
| + | virtual bool call(const GearEngineContext& | ||
| + | void setFormat(const char* format); | ||
| + | }; | ||
| + | |||
| + | class GearPrintTable : public GearPrintToStream | ||
| + | { | ||
| + | public: | ||
| + | GearPrintTable(std:: | ||
| + | virtual bool call(const GearEngineContext& | ||
| + | void reset(); | ||
| + | }; | ||
| + | |||
| ---- | ---- | ||
| - | [ [[.:|Libnum classes]] ] [ [[..: | + | [ [[.:|Libnum classes]] ] [ [[..: |
libnum/classes/gear.1772628083.txt.gz · Last modified: by abc
