File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
NDTensors/src/lib/GradedAxes/src Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -53,16 +53,12 @@ function BlockArrays.blocklengths(a::GradedUnitRangeDual)
5353 return dual .(blocklengths (nondual (a)))
5454end
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.
6257function 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)])
6662end
6763
6864function blockedunitrange_getindices (
You can’t perform that action at this time.
0 commit comments