Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/implementations/truncation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ end

# when one of the ind selections is a bitvector, have to handle differently
function _ind_intersect(A::AbstractVector{Bool}, B::AbstractVector)
Copy link
Member

@Jutho Jutho Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it useful to special case

_ind_intersect(A::AbstractVector{Bool}, B::AbstractVector{Bool}) = A .& B

?

result = falses(length(A))
result = fill!(similar(A), false)
result[B] .= @view A[B]
return result
end
Expand Down