Skip to content

Commit 230ddae

Browse files
committed
rename flip_blockvector to flip_axes
1 parent cf050da commit 230ddae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function blockedunitrange_getindices(
6060
a_indices = getindex(nondual(a), indices)
6161
v = mortar(dual.(blocks(a_indices)))
6262
# flip v to stay consistent with other cases where axes(v) are used
63-
return flip_blockvector(v)
63+
return flip_axes(v)
6464
end
6565

6666
function blockedunitrange_getindices(
@@ -71,7 +71,7 @@ function blockedunitrange_getindices(
7171
# GradedOneTo appears in mortar
7272
# flip v axis to preserve dual information
7373
# axes(v) will appear in axes(view(::BlockSparseArray, [Block(1)[1:1]]))
74-
return flip_blockvector(v)
74+
return flip_axes(v)
7575
end
7676

7777
function blockedunitrange_getindices(
@@ -91,7 +91,7 @@ function blockedunitrange_getindices(
9191
# GradedOneTo appears in mortar
9292
# flip v axis to preserve dual information
9393
# axes(v) will appear in axes(view(::BlockSparseArray, [Block(1)]))
94-
return flip_blockvector(v)
94+
return flip_axes(v)
9595
end
9696

9797
# Fixes ambiguity error.
@@ -106,10 +106,10 @@ function blockedunitrange_getindices(
106106
# `only(axes(a[indices])) isa `GradedUnitRange`
107107
# if `a isa `GradedUnitRange`, for example.
108108
v = mortar(blks, labelled_length.(blks))
109-
return flip_blockvector(v)
109+
return flip_axes(v)
110110
end
111111

112-
function flip_blockvector(v::BlockVector)
112+
function flip_axes(v::BlockVector)
113113
block_axes = flip.(axes(v))
114114
flipped = mortar(vec.(blocks(v)), block_axes)
115115
return flipped

0 commit comments

Comments
 (0)