Skip to content

Commit 033704e

Browse files
authored
Remove unnecessary _ind_intersect (QuantumKitHub#435)
1 parent e3bdab4 commit 033704e

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

ext/TensorKitCUDAExt/truncation.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,3 @@ function MatrixAlgebraKit.findtruncated_svd(values::CuSectorVector, strategy::Ma
6767
strategy′ = trunctol(; atol, strategy.by, strategy.keep_below)
6868
return SectorDict(c => CUDA.CUDACore.Adapt.adapt(Vector, MatrixAlgebraKit.findtruncated_svd(d, strategy′)) for (c, d) in pairs(values))
6969
end
70-
71-
# Needed until MatrixAlgebraKit patch hits...
72-
function MatrixAlgebraKit._ind_intersect(A::CuVector{Bool}, B::CuVector{Int})
73-
result = fill!(similar(A), false)
74-
result[B] .= @view A[B]
75-
return result
76-
end

0 commit comments

Comments
 (0)