Skip to content

Commit 8b164c8

Browse files
committed
Fix
1 parent 4efc9fe commit 8b164c8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Project.toml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,3 @@ TimerOutputs = "1"
7272
TupleTools = "1.5"
7373
VectorInterface = "0.6, 0.7"
7474
julia = "1.10"
75-
76-
[sources]
77-
MatrixAlgebraKit = {url = "https://github.com/quantumkithub/matrixalgebrakit.jl/", rev = "main"}

‎src/factorizations/truncation.jl‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,10 @@ function _findtruncated_multiplets(values::SectorVector, inds, strategy::Truncat
356356
return keep
357357
end
358358

359-
_ind_to_mask!(keep::SectorVector{Bool}, inds::SectorVector{Bool}) = copyto!(keep, inds)
359+
function _ind_to_mask!(keep::SectorVector{Bool}, inds::SectorVector{Bool})
360+
copyto!(parent(keep), parent(inds))
361+
return keep
362+
end
360363
function _ind_to_mask!(keep::SectorVector{Bool}, inds::SectorDict)
361364
fill!(parent(keep), false)
362365
for (c, ind) in pairs(inds)

0 commit comments

Comments
 (0)