Skip to content

Commit 4bc1e7c

Browse files
committed
Revert "change dim of GradedSpace to not evaluate one"
This reverts commit c31b99c.
1 parent 9635362 commit 4bc1e7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spaces/gradedspace.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ Base.hash(V::GradedSpace, h::UInt) = hash(V.dual, hash(V.dims, h))
9090
# properties
9191
field(::Type{<:GradedSpace}) =
9292
InnerProductStyle(::Type{<:GradedSpace}) = EuclideanInnerProduct()
93-
function dim(V::GradedSpace{I}) where {I<:Sector}
93+
function dim(V::GradedSpace)
9494
return reduce(+, dim(V, c) * dim(c) for c in sectors(V);
95-
init=zero(TensorKitSectors._Fscalartype(I)))
95+
init=zero(dim(one(sectortype(V)))))
9696
end
9797
function dim(V::GradedSpace{I,<:AbstractDict}, c::I) where {I<:Sector}
9898
return get(V.dims, isdual(V) ? dual(c) : c, 0)

0 commit comments

Comments
 (0)