Skip to content

Bug: Block indexing changed between 0.16.40 and 0.16.43 #390

@JordiManyer

Description

@JordiManyer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions