Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha Demin committed Feb 16, 2024
1 parent ed11f75 commit 23a4390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reduction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct Reduction{A, B, C}
lumping_matrix::Matrix{Any}

function Reduction{A, B, C}(new_system::ODE{A}, new_vars::Dict{A, B}, old_system::ODE{C}) where {A, B, C}
lumping_vars = [new_vars[x] for x in gens(parent(old_system))]
lumping_vars = [new_vars[x] for x in gens(parent(new_system))]
lumping_combs = [sum(collect(coefficients(comb)) .* exponent_vectors(comb)) for comb in lumping_vars]
lumping_matrix = mapreduce(permutedims, vcat, lumping_combs)
return new{A, B, C}(new_system, new_vars, old_system, lumping_matrix)
Expand Down

0 comments on commit 23a4390

Please sign in to comment.