You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't work because Catalyst scalarizes vector parameters declared in the @reaction_network macro. As a result, MTK considers each of the elements as separate parameters. I can get it to recognize the vector version of k in limited cases, but @TorkelE would it be possible for Catalyst to not scalarize here?
Ahh that makes sense. The scalarizing can also potentially inhibit some of the codegen optimizations that are starting to happen as well, so it would be best to solve this by not scalarizing in Catalyst.
remake
does not update parameters that are vector-valued. The following example is taken from the Catalyst documentation:oprob_rmk
does not have the updated parameters; bothsolve(oprob)(1.0)
andsolve(oprob_rmk)(1.0)
produce the same output.Interestingly, this behaviour is absent if the parameters are defined outside of the
reaction_network
macro:Here,
solve(oprob_rmk)(1.0)
produces the expected output, i.e.[0.0, 2.0]
.The text was updated successfully, but these errors were encountered: