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

Bug: Block indexing changed between 0.16.40 and 0.16.43 #390

Closed
JordiManyer opened this issue Apr 12, 2024 · 1 comment
Closed

Bug: Block indexing changed between 0.16.40 and 0.16.43 #390

JordiManyer opened this issue Apr 12, 2024 · 1 comment

Comments

@JordiManyer
Copy link

Hi all,

I believe a bug was introduced somewhere 0.16.40 and 0.16.43.

See the following MWE:

using BlockArrays

x = mortar([[1,2,3],[4,5,6]])
@assert blocks(x)[1] === x[Block(1)]

This was true in 0.16.40, and breaks for 0.16.43.
I believe x[Block(1)] is allocating a new array now. I assume it's a bug.

Thanks,
Jordi

@JordiManyer
Copy link
Author

Ok I see #236 , nvm

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

1 participant