We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd77e5 commit 0589a4eCopy full SHA for 0589a4e
NDTensors/src/lib/SymmetrySectors/src/sector_definitions/u1.jl
@@ -17,7 +17,7 @@ GradedAxes.dual(u::U1) = U1(-u.n)
17
sector_label(u::U1) = u.n
18
19
trivial(::Type{U1}) = trivial(U1{Int})
20
-trivial(::Type{U1{T}}) where {T} = U1(T(0))
+trivial(::Type{U1{T}}) where {T} = U1(zero(T))
21
22
abelian_label_fusion_rule(sector_type::Type{<:U1}, n1, n2) = sector_type(n1 + n2)
23
0 commit comments