Skip to content

Commit f6296a1

Browse files
committed
remove outdated LabelledNumbers code
1 parent 5396fa6 commit f6296a1

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66"
2121
TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138"
2222

2323
[weakdeps]
24-
LabelledNumbers = "f856a3a6-4152-4ec4-b2a7-02c1a55d7993"
2524
TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
2625
TensorProducts = "decf83d6-1968-43f4-96dc-fdb3fe15fc6d"
2726

2827
[extensions]
2928
BlockSparseArraysGradedUnitRangesExt = "GradedUnitRanges"
30-
BlockSparseArraysTensorAlgebraExt = ["LabelledNumbers", "TensorProducts", "TensorAlgebra"]
29+
BlockSparseArraysTensorAlgebraExt = ["TensorProducts", "TensorAlgebra"]
3130

3231
[compat]
3332
Adapt = "4.1.1"
@@ -40,7 +39,6 @@ Dictionaries = "0.4.3"
4039
FillArrays = "1.13.0"
4140
GPUArraysCore = "0.1.0, 0.2"
4241
GradedUnitRanges = "0.2.2"
43-
LabelledNumbers = "0.1.0"
4442
LinearAlgebra = "1.10"
4543
MacroTools = "0.5.13"
4644
MapBroadcast = "0.1.5"

ext/BlockSparseArraysTensorAlgebraExt/BlockSparseArraysTensorAlgebraExt.jl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,4 @@ function Base.axes(a::Adjoint{<:Any,<:AbstractBlockSparseMatrix})
115115
return dual.(reverse(axes(a')))
116116
end
117117

118-
# This definition is only needed since calls like
119-
# `a[[Block(1), Block(2)]]` where `a isa AbstractGradedUnitRange`
120-
# returns a `BlockSparseVector` instead of a `BlockVector`
121-
# due to limitations in the `BlockArray` type not allowing
122-
# axes with non-Int element types.
123-
# TODO: Remove this once that issue is fixed,
124-
# see https://github.com/JuliaArrays/BlockArrays.jl/pull/405.
125-
using BlockArrays: BlockRange
126-
using LabelledNumbers: label
127-
function GradedUnitRanges.blocklabels(a::BlockSparseVector)
128-
return map(BlockRange(a)) do block
129-
return label(blocks(a)[Int(block)])
130-
end
131-
end
132-
133118
end

0 commit comments

Comments
 (0)