Skip to content

Commit 8a9bc06

Browse files
committed
Slightly more generally boolean indices
1 parent fec1e4b commit 8a9bc06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BlockArraysExtensions/blockedunitrange.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ end
135135

136136
# TODO: Move this to a `BlockArraysExtensions` library.
137137
function blockedunitrange_getindices(
138-
a::AbstractBlockedUnitRange, indices::Vector{<:Integer}
138+
a::AbstractBlockedUnitRange, indices::AbstractVector{<:Integer}
139139
)
140140
return map(index -> a[index], indices)
141141
end
@@ -171,7 +171,7 @@ function blockedunitrange_getindices(
171171
end
172172

173173
function blockedunitrange_getindices(
174-
a::AbstractBlockedUnitRange, indices::AbstractArray{Bool}
174+
a::AbstractBlockedUnitRange, indices::AbstractVector{Bool}
175175
)
176176
blocked_indices = BlockedVector(indices, axes(a))
177177
return mortar(

0 commit comments

Comments
 (0)