We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7254747 commit 7cfae1aCopy full SHA for 7cfae1a
1 file changed
src/utility/svd.jl
@@ -286,7 +286,9 @@ function TensorKit._compute_svddata!(
286
I = sectortype(f)
287
dims = SectorDict{I,Int}()
288
289
- generator = Base.Iterators.map(blocks(f)) do (c, b)
+ sectors = trunc isa NoTruncation ? blocksectors(f) : blocksectors(trunc.space)
290
+ generator = Base.Iterators.map(sectors) do c
291
+ b = block(f, c)
292
howmany = trunc isa NoTruncation ? minimum(size(b)) : blockdim(trunc.space, c)
293
294
if howmany / minimum(size(b)) > alg.fallback_threshold # Use dense SVD for small blocks
0 commit comments