libnum:classes:index
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| libnum:classes:index [2026/03/04 13:05] – abc | libnum:classes:index [2026/03/04 15:43] (current) – abc | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| namespace NumericMethods | namespace NumericMethods | ||
| - | See: '' | + | * [[gear|Gear Integration method]] (Integration of Systems of Linear Differential Equations). |
| - | class [[# | ||
| - | class [[# | ||
| - | struct [[# | ||
| - | class [[# | ||
| - | class [[# | ||
| - | typedef DoubleParamsMap [[# | ||
| - | class [[# | ||
| - | class [[# | ||
| - | |||
| - | ===== Gear ===== | ||
| - | class Gear | ||
| - | { | ||
| - | | ||
| - | Gear(); | ||
| - | | ||
| - | void set(int n, GearUserProc* derFunc, GearUserProc* jacFunc); | ||
| - | void setCallback(GearEngineCallback& | ||
| - | Message solve(const double t_begin, const double t_end, const double* y0); | ||
| - | GearEngineContext engineContext; | ||
| - | GearAssistant assistant; | ||
| - | }; | ||
| - | |||
| - | The ' | ||
| - | to calculate the derivative function values and DY, the Jacobian. | ||
| - | |||
| - | The Gear object has its private Allocator which provides memory to consecutive runs of | ||
| - | ' | ||
| - | |||
| - | The rest settings and user interactions are done via GearAssistance object, the public | ||
| - | property of the Gear object. E.g. ' | ||
| - | |||
| - | ===== GearUserProc ===== | ||
| - | |||
| - | ===== GearEngineContext ===== | ||
| - | Read-only references to member variables of the Gear object. | ||
| - | |||
| - | struct GearEngineContext | ||
| - | { | ||
| - | const int& | ||
| - | const int& | ||
| - | const double& h; // current step of integration | ||
| - | const double& t; // current time | ||
| - | const double* const& Z; // values (ref to Z[]) | ||
| - | }; | ||
| - | ===== GearEngineCallback ===== | ||
| - | The hook/ | ||
| - | |||
| - | class GearEngineCallback | ||
| - | { | ||
| - | | ||
| - | virtual bool call(const GearEngineContext& | ||
| - | return true; // return ' | ||
| - | } | ||
| - | }; | ||
| - | |||
| - | ===== GearAssistant ===== | ||
| - | class GearAssistant | ||
| - | { | ||
| - | | ||
| - | GearParams | ||
| - | GearStatistics statistics; | ||
| - | }; | ||
| - | |||
| - | ===== GearAllocator ===== | ||
| - | class GearAllocator | ||
| - | { | ||
| - | | ||
| - | GearAllocator(Gear& | ||
| - | ~GearAllocator(); | ||
| - | bool allocateMemory(int task_dimension); | ||
| - | }; | ||
| - | |||
| - | ===== GearParams ===== | ||
| - | class DoubleParamsMap | ||
| - | { | ||
| - | | ||
| - | DoubleParamsMap() : params() {} | ||
| - | bool declareParameter(const char* name, double value=0); | ||
| - | bool setParameter(ParamID id, double value); | ||
| - | double getParameter(ParamID id) const; | ||
| - | std::string getParameterNames() const; | ||
| - | | ||
| - | std:: | ||
| - | }; | ||
libnum/classes/index.1772618717.txt.gz · Last modified: by abc
