libroadrunner C API
Functions
Rates of change group

Get information about rates of change. More...

Functions

C_DECL_SPEC RRVectorPtr rrcCallConv getRatesOfChange (RRHandle handle)
 Retrieve the vector of rates of change as determined by the current state of the model. More...
 
C_DECL_SPEC RRStringArrayPtr rrcCallConv getRatesOfChangeIds (RRHandle handle)
 Retrieve the string list of rates of change Ids. More...
 
C_DECL_SPEC bool rrcCallConv getRateOfChange (RRHandle handle, const int, double *value)
 Retrieve the rate of change for a given floating species. More...
 
C_DECL_SPEC RRVectorPtr rrcCallConv getRatesOfChangeEx (RRHandle handle, const RRVectorPtr vec)
 Retrieve the vector of rates of change given a vector of floating species concentrations. More...
 

Detailed Description

Get information about rates of change.

Function Documentation

◆ getRateOfChange()

C_DECL_SPEC bool rrcCallConv getRateOfChange ( RRHandle  handle,
const int  ,
double *  value 
)

Retrieve the rate of change for a given floating species.

Example:

status = getRateOfChange (&index, *value);
C_DECL_SPEC bool rrcCallConv getRateOfChange(RRHandle handle, const int, double *value)
Retrieve the rate of change for a given floating species.
Parameters
[in]handleHandle to a RoadRunner instance
[out]valuePointer to double, holding the rate of change
Returns
Returns false if it fails, otherwise value contains the rate of change.

◆ getRatesOfChange()

C_DECL_SPEC RRVectorPtr rrcCallConv getRatesOfChange ( RRHandle  handle)

Retrieve the vector of rates of change as determined by the current state of the model.

Example:

values = getRatesOfChange (RRHandle handle);
C_DECL_SPEC RRVectorPtr rrcCallConv getRatesOfChange(RRHandle handle)
Retrieve the vector of rates of change as determined by the current state of the model.
void * RRHandle
Void pointer to a RoadRunner instance.
Definition: rrc_types.h:50
Parameters
[in]handleHandle to a RoadRunner instance
Returns
Returns null if it fails, otherwise returns a vector of rates of change values

◆ getRatesOfChangeEx()

C_DECL_SPEC RRVectorPtr rrcCallConv getRatesOfChangeEx ( RRHandle  handle,
const RRVectorPtr  vec 
)

Retrieve the vector of rates of change given a vector of floating species concentrations.

Example:

values = getRatesOfChangeEx (vector);
C_DECL_SPEC RRVectorPtr rrcCallConv getRatesOfChangeEx(RRHandle handle, const RRVectorPtr vec)
Retrieve the vector of rates of change given a vector of floating species concentrations.
Parameters
[in]handleHandle to a RoadRunner instance
[in]vecVector handle holding rates of change
Returns
Returns null if it fails

◆ getRatesOfChangeIds()

C_DECL_SPEC RRStringArrayPtr rrcCallConv getRatesOfChangeIds ( RRHandle  handle)

Retrieve the string list of rates of change Ids.

Example:

Ids = getRatesOfChangeIds (RRHandle handle);
C_DECL_SPEC RRStringArrayPtr rrcCallConv getRatesOfChangeIds(RRHandle handle)
Retrieve the string list of rates of change Ids.
Parameters
[in]handleHandle to a RoadRunner instance
Returns
Returns null if it fails, otherwise returns a list of rates of change Ids