module YPetri::Simulation::Transitions::Type_S
Public Instance Methods
SM()
click to toggle source
Returns the collection's stoichiometry matrix versus all places.
# File lib/y_petri/simulation/transitions/S.rb, line 18 def SM map( &:sparse_sv ) .reduce( Matrix.empty( places.size, 0 ), :join_right ) end
Also aliased as: stoichiometry_matrix_all
stoichiometry_matrix()
click to toggle source
Returns the collection's stoichiometry matrix versus free places.
# File lib/y_petri/simulation/transitions/S.rb, line 11 def stoichiometry_matrix map( &:sparse_stoichiometry_vector ) .reduce( Matrix.empty( places.free.size, 0 ), :join_right ) end