Skip to content

[BUG] fusedims sometimes initializes all blocks #88

@ogauthe

Description

@ogauthe
using BlockSparseArrays: BlockSparseArray, eachblockstoredindex
using GradedUnitRanges: gradedrange
using SymmetrySectors: U1
using TensorAlgebra: fusedims

r = gradedrange([U1(0) => 2, U1(1) => 2])
a2 = BlockSparseArray{Float64}(undef, r, r)
@test length(eachblockstoredindex(fusedims(a2, (1,), (2,)))) == 0
a3 = BlockSparseArray{Float64}(undef, r, r, r)
@test_broken length(eachblockstoredindex(fusedims(a3, (1,), (2,), (3,)))) == 0

For some reason this appears starting at 3 dimensions. Unaffected by current rewriting using unmerged_tensor_product.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions