class qode

A quantized ODE solver.

Public Methods

[more] qode(unsigned N)
Create a solver for a set of N ODEs
[more]void init(const double* q0, const double* dq0)
Initial the integrator set.
[more]void init(unsigned j, double q0, double dq0 = 0.0)
Initialize the jth integrator
[more]void integ(double dt, const double* dq)
Integrate over dt (dt <= ta()) units of time with derivatives dq.
[more]inline double out(unsigned j) const
Return the quantized output for integrator j at time tL + ta(), where tL was the time of the last state change
[more]inline double out(unsigned j, double dt) const
Return the quantized output for integrator j at time tL + dt, dt <= ta()
[more]inline double qstate(unsigned j) const
Return the quantized state of the integrator at time tL
[more]inline double state(unsigned j) const
Return the state of the integrator at time tL
[more]inline double ta() const
The time advance function for the ODE set.
[more]inline void setParams(unsigned j, double D, double e = -1.0)
Set the parameters for iterator j (see qintg)
[more]void setParams(double D, double e = -1.0)
Set the parameters for all integrators (see qintg)


Documentation

A quantized ODE solver. The qode uses a set of quantized integrators to provide a solution to a set of ordinary differential equations.
o qode(unsigned N)
Create a solver for a set of N ODEs

ovoid init(const double* q0, const double* dq0)
Initial the integrator set. q0 is the initial state, dq0 are the initial derivatives.

ovoid init(unsigned j, double q0, double dq0 = 0.0)
Initialize the jth integrator

ovoid integ(double dt, const double* dq)
Integrate over dt (dt <= ta()) units of time with derivatives dq.

oinline double out(unsigned j) const
Return the quantized output for integrator j at time tL + ta(), where tL was the time of the last state change

oinline double out(unsigned j, double dt) const
Return the quantized output for integrator j at time tL + dt, dt <= ta()

oinline double qstate(unsigned j) const
Return the quantized state of the integrator at time tL

oinline double state(unsigned j) const
Return the state of the integrator at time tL

oinline double ta() const
The time advance function for the ODE set.

oinline void setParams(unsigned j, double D, double e = -1.0)
Set the parameters for iterator j (see qintg)

ovoid setParams(double D, double e = -1.0)
Set the parameters for all integrators (see qintg)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.