lib/y_petri/simulation/transitions/TS.rb in y_petri-2.1.12 vs lib/y_petri/simulation/transitions/TS.rb in y_petri-2.1.16
- old
+ new
@@ -5,16 +5,10 @@
class YPetri::Simulation::Transitions
module Type_TS
include Type_T
include Type_S
- # Rate vector closure accessor.
- #
- def rate_closure
- @rate_closure ||= to_rate_closure
- end
-
# Rate (flux, propensity) closures.
#
def rate_closures
map &:rate_closure
end
@@ -51,7 +45,8 @@
#
def to_rate_closure
rc = rate_closures
-> { rc.map( &:call ).to_column_vector }
end
+ alias rate_closure to_rate_closure
end # module Type_TS
end # class YPetri::Simulation::Transitions