We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
flatten_equations
1 parent 4792360 commit 8781223Copy full SHA for 8781223
src/systems/diffeqs/abstractodesystem.jl
@@ -1230,7 +1230,7 @@ function flatten_equations(eqs)
1230
error("LHS ($(eq.lhs)) and RHS ($(eq.rhs)) must either both be array expressions or both scalar")
1231
size(eq.lhs) == size(eq.rhs) ||
1232
error("Size of LHS ($(eq.lhs)) and RHS ($(eq.rhs)) must match: got $(size(eq.lhs)) and $(size(eq.rhs))")
1233
- return collect(eq.lhs) .~ collect(eq.rhs)
+ return vec(collect(eq.lhs) .~ collect(eq.rhs))
1234
else
1235
eq
1236
end
0 commit comments