Skip to content

Commit 0216abc

Browse files
committed
avoid gradedunitrangedual_getindices_blocks
1 parent c60c080 commit 0216abc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

NDTensors/src/lib/GradedAxes/src/gradedunitrangedual.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,12 @@ function BlockArrays.blocklengths(a::GradedUnitRangeDual)
5353
return dual.(blocklengths(nondual(a)))
5454
end
5555

56-
function gradedunitrangedual_getindices_blocks(a::GradedUnitRangeDual, indices)
57-
a_indices = getindex(nondual(a), indices)
58-
return mortar([label_dual(b) for b in blocks(a_indices)])
59-
end
60-
6156
# TODO: Move this to a `BlockArraysExtensions` library.
6257
function blockedunitrange_getindices(
6358
a::GradedUnitRangeDual, indices::Vector{<:BlockIndexRange{1}}
6459
)
65-
return gradedunitrangedual_getindices_blocks(a, indices)
60+
a_indices = getindex(nondual(a), indices)
61+
return mortar([label_dual(b) for b in blocks(a_indices)])
6662
end
6763

6864
function blockedunitrange_getindices(

0 commit comments

Comments
 (0)