RecursiveArrayTools.jl icon indicating copy to clipboard operation
RecursiveArrayTools.jl copied to clipboard

enumerate with VectorOfArray

Open moesphere opened this issue 4 years ago • 1 comments

Enumerating the following MWE gives an unexpected result:

[(i,x) for (i,x) in enumerate(VectorOfArray([[1,2,3]]))]

grafik

moesphere avatar Dec 11 '21 21:12 moesphere

Yeah... iteration is weird. Iteration iterates over the vectors, not the elements of the vector. This was a decision made a long long time ago which was probably wrong, but would be very breaking so it would be necessary to tie it to DiffEq v7.

ChrisRackauckas avatar Dec 12 '21 15:12 ChrisRackauckas