Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enumerate with VectorOfArray #175

Open
moesphere opened this issue Dec 11, 2021 · 1 comment
Open

enumerate with VectorOfArray #175

moesphere opened this issue Dec 11, 2021 · 1 comment

Comments

@moesphere
Copy link

Enumerating the following MWE gives an unexpected result:

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

grafik

@ChrisRackauckas
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants