@@ -81,14 +81,28 @@ Base.Sort.defalg(::ReactionComplex) = Base.DEFAULT_UNSTABLE
81
81
Base. @kwdef mutable struct NetworkProperties{I <: Integer , V <: BasicSymbolic{Real} }
82
82
""" Flag which is switched to `true` once any field is updated."""
83
83
isempty:: Bool = true
84
+ """
85
+ The reaction network's net stoichiometry matrix. It is a MxN matrix where M is its number of
86
+ species and N its number of reaction. Element i,j is net stoichiometric change to the i'th
87
+ species as a result of the j'th reaction.
88
+ """
84
89
netstoichmat:: Union{Matrix{Int}, SparseMatrixCSC{Int, Int}} = Matrix {Int} (undef, 0 , 0 )
90
+ """
91
+ The reaction network's conservation law matrix. It is a MxN matrix where M is its number of
92
+ conservation laws and N its number of species. Element i,j is the coefficient of species
93
+ j in the i'th conservation law.
94
+ """
85
95
conservationmat:: Matrix{I} = Matrix {I} (undef, 0 , 0 )
86
96
col_order:: Vector{Int} = Int[]
87
97
"""
88
98
The reaction networks *rank* (i.e. the span of the columns of its net stoichiometry matrix,
89
99
or its number of independent species).
90
100
"""
91
101
rank:: Int = 0
102
+ """
103
+ The reaction network's *nullity* is its number of species - its rank. This is equal to its
104
+ number of conservation laws.
105
+ """
92
106
nullity:: Int = 0
93
107
"""
94
108
The set of *independent species* of the reaction system (i.e. species that will not be
@@ -112,6 +126,9 @@ Base.@kwdef mutable struct NetworkProperties{I <: Integer, V <: BasicSymbolic{Re
112
126
system (`X1 <--> X2`) there is one conserved quantity with the equation `Γ[1] ~ X1 + X2`.
113
127
"""
114
128
constantdefs:: Vector{Equation} = Equation[]
129
+ """
130
+ A map from each species (as a symbolic variable) to its index in the species vector.
131
+ """
115
132
speciesmap:: Dict{V, Int} = Dict {V, Int} ()
116
133
"""
117
134
A dictionary from each reaction complex to the reactions they participate it. The value
0 commit comments