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
Following from #194 it should be possible to split parts of an array expression over different stages (constant, user, time) subject to the condition that we evaluate them in the same order, so an equations stage is equal to the maximum stage observed so far.
So if we have:
M[, ] <- 1
M[2,3] <- x * t
M[1,4] <- 2
these would be stage constant, time, time.
The text was updated successfully, but these errors were encountered:
Which shows the later update dates to C[2] and C[3] take preference over the C[] assignment.
This is useful, but I think its unintuitive given that you can't reassign non-array variables in odin.
I was writing a model with more complex indexing and since this isn't documented anywhere I assumed that odin would throw an error if assignment indexes are overlapping, which made my debugging much harder.
The documentation could make it clear that this is possible?
Following from #194 it should be possible to split parts of an array expression over different stages (constant, user, time) subject to the condition that we evaluate them in the same order, so an equations stage is equal to the maximum stage observed so far.
So if we have:
these would be stage constant, time, time.
The text was updated successfully, but these errors were encountered: