Internal API

Index Handlers

Index Handler Implementations

User-defined index handlers should inherit from AbstractIndexHandler and implement the following methods:

For matrix conversions they should additionally implement:

Built-in implementations

Function Building

FiniteStateProjection.build_rhs — Function
build_rhs(sys::FSPSystem)

Builds the function f(du,u,p,t) that defines the right-hand side of the CME for use with DifferentialEquations.jl.

source
FiniteStateProjection.build_rhs_firstpass — Function
build_rhs_firstpass(sys::FSPSystem)

Return code for the first pass of the RHS function, for the time-dependent FSP. Goes through all reactions and computes the negative part of the CME (probability flowing out of states). This is a simple array traversal and can be done in one go for all reactions.

See also: build_rhs

source
FiniteStateProjection.build_rhs_secondpass — Function
build_rhs_secondpass(sys::FSPSystem)

Return code for the second pass of the RHS function. Goes through all reactions and computes the positive part of the CME (probability flowing into states). This requires accessing du and u at different locations depending on the net stoichiometries. In order to reduce random memory access reactions are processed one by one.

See also: build_rhs

source

Steady-State Functions