Skip to content

Commit a7d13b3

Browse files
committed
don't use rounddim because it's messy with SVD with truncdim
1 parent b4b838e commit a7d13b3

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/bimodulesector.jl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,18 +293,9 @@ function TensorKit.blocksectors(W::TensorMapSpace{S,N₁,N₂}) where
293293
end
294294
end
295295

296-
function rounddim(c::I) where {I<:BimoduleSector}
297-
_dim = dim(c)
298-
if _dim floor(_dim)
299-
return floor(_dim)
300-
else
301-
return _dim
302-
end
303-
end
304-
305296
function TensorKit.dim(V::GradedSpace{<:BimoduleSector})
306297
T = Base.promote_op(*, Int, real(sectorscalartype(sectortype(V))))
307-
return reduce(+, dim(V, c) * rounddim(c) for c in sectors(V); init=zero(T))
298+
return reduce(+, dim(V, c) * dim(c) for c in sectors(V); init=zero(T))
308299
end
309300

310301
Base.zero(S::Type{<:GradedSpace{<:BimoduleSector}}) = S()

0 commit comments

Comments
 (0)