Skip to content

Commit 9b53ddf

Browse files
committed
some more small truncation fixes
1 parent 4ab4707 commit 9b53ddf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/factorizations/truncation.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,19 @@ function MAK.findtruncated_svd(values::SectorDict, strategy::TruncationSpace)
225225
end
226226

227227
function MAK.findtruncated(values::SectorDict, strategy::TruncationIntersection)
228-
inds = map(Base.Fix1(MAK.findtruncated, values), strategy)
228+
inds = map(Base.Fix1(MAK.findtruncated, values), strategy.components)
229229
return SectorDict(
230230
c => mapreduce(
231-
Base.Fix2(getindex, c), _ind_intersect, inds;
231+
Base.Fix2(getindex, c), MatrixAlgebraKit._ind_intersect, inds;
232232
init = trues(length(values[c]))
233233
) for c in intersect(map(keys, inds)...)
234234
)
235235
end
236-
function MAK.findtruncated_svd(Sd::SectorDict, strategy::TruncationIntersection)
237-
inds = map(Base.Fix1(MAK.findtruncated_svd, Sd), strategy)
236+
function MAK.findtruncated_svd(values::SectorDict, strategy::TruncationIntersection)
237+
inds = map(Base.Fix1(MAK.findtruncated_svd, values), strategy.components)
238238
return SectorDict(
239239
c => mapreduce(
240-
Base.Fix2(getindex, c), _ind_intersect, inds;
240+
Base.Fix2(getindex, c), MatrixAlgebraKit._ind_intersect, inds;
241241
init = trues(length(values[c]))
242242
) for c in intersect(map(keys, inds)...)
243243
)

0 commit comments

Comments
 (0)