Skip to content

Commit 5396fa6

Browse files
committed
remove old workaround
1 parent 861c830 commit 5396fa6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ext/BlockSparseArraysTensorAlgebraExt/BlockSparseArraysTensorAlgebraExt.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,6 @@ function TensorAlgebra.splitdims(
108108
return splitdims(BlockReshapeFusion(), a_blockpermed, split_axes...)
109109
end
110110

111-
# This is a temporary fix for `eachindex` being broken for BlockSparseArrays
112-
# with mixed dual and non-dual axes. This shouldn't be needed once
113-
# GradedUnitRanges is rewritten using BlockArrays v1.
114-
# TODO: Delete this once GradedUnitRanges is rewritten.
115-
function Base.eachindex(a::AbstractBlockSparseArray)
116-
return CartesianIndices(nondual.(axes(a)))
117-
end
118-
119111
# TODO: Handle this through some kind of trait dispatch, maybe
120112
# a `SymmetryStyle`-like trait to check if the block sparse
121113
# matrix has graded axes.

0 commit comments

Comments
 (0)