#include <rdStateVector.h>
Public Member Functions | |
| rdStateVector (double aT=0.0, int aN=0, double *aData=NULL) | |
| Default constructor. | |
| rdStateVector (rdStateVector &aVector) | |
| Copy constructor. | |
| virtual | ~rdStateVector () |
| Destructor. | |
| void | setStates (double aT, int aN, double aY[]) |
| int | getSize () |
| Get the size of the data vector. | |
| void | setTime (double aT) |
| Set the time stamp of this vector. | |
| double | getTime () |
| Get the time stamp of this vector. | |
| int | getDataValue (int aIndex, double &rValue) |
| Get the data value at a specified index. | |
| double * | getData () |
| Get the data values of this vector. | |
| void | shiftTime (double aValue) |
| Shift the time of this state vector. | |
| void | scaleTime (double aValue) |
| Scale the time of this state vector. | |
| void | add (double aValue) |
| Add a value to each state. | |
| void | add (int aN, double aY[]) |
| Add the values held in an array to the corresponding states. | |
| void | add (rdStateVector *aStateVector) |
| Add the values held in a state vector to the corresponding states. | |
| void | subtract (double aValue) |
| Subtract a value from each state. | |
| void | subtract (int aN, double aY[]) |
| Subtract the values held in an array from the corresponding states. | |
| void | subtract (rdStateVector *aStateVector) |
| Subtract the values held in a state vector from the corresponding states. | |
| void | multiply (double aValue) |
| Multiply the states by a value. | |
| void | multiply (int aN, double aY[]) |
| Multiply the states by the corresponding values in an array. | |
| void | multiply (rdStateVector *aStateVector) |
| Multiply the states by the corresponding values in a state vector. | |
| void | divide (double aValue) |
| Divide the states by a value. | |
| void | divide (int aN, double aY[]) |
| Divide the states by the corresponding values in an array. | |
| void | divide (rdStateVector *aStateVector) |
| Divide the states by the corresponding values in a state vector. | |
| void | print () |
| Print the contents of this rdStateVector to standard out. | |
| int | print (FILE *fp) |
| Print the contents of this rdStateVector to file. | |
Private Member Functions | |
| void | setNull () |
| Set the null or default values of the states. | |
Private Attributes | |
| double | _t |
| Time stamp of the statevector. | |
| int | _n |
| Number of elements in the statevector. | |
| double * | _data |
| The statevector. | |
Generally, it is used to store the time histories of the states during an integration.
The format of the numerical output for this class is specified by the settings in rdIO.
|
|
Add the values held in a state vector to the corresponding states.
|
|
||||||||||||
|
Add the values held in an array to the corresponding states. Only the first aN states are altered.
|
|
|
Add a value to each state.
|
|
|
Divide the states by the corresponding values in a state vector.
|
|
||||||||||||
|
Divide the states by the corresponding values in an array. Only the first aN states are altered.
|
|
|
Divide the states by a value.
|
|
||||||||||||
|
Get the data value at a specified index.
|
|
|
Multiply the states by the corresponding values in a state vector.
|
|
||||||||||||
|
Multiply the states by the corresponding values in an array. Only the first aN states are altered.
|
|
|
Multiply the states by a value.
|
|
|
Print the contents of this rdStateVector to file. The number of characters written to file is returned. If an error occurs, a negative value is returned. |
|
|
Scale the time of this state vector.
|
|
|
Shift the time of this state vector.
|
|
|
Subtract the values held in a state vector from the corresponding states.
|
|
||||||||||||
|
Subtract the values held in an array from the corresponding states. Only the first aN states are altered.
|
|
|
Subtract a value from each state.
|
1.3