Bug in norm and norm2 for SU3fund

This commit is contained in:
Fernando P. Panadero 2023-11-20 12:42:32 +01:00
parent b4a269f9af
commit bcc53ff5cb

View file

@ -24,14 +24,14 @@ dag(a::SU3fund{T}) where T <: AbstractFloat = SU3fund{T}(conj(a.
Returns the norm of a fundamental element. Same result as dot(a,a). Returns the norm of a fundamental element. Same result as dot(a,a).
""" """
norm(a::SU3fund{T}) where T <: AbstractFloat = sqrt((abs2(a.t1) + abs2(a.t2) + abs2(a.t1))) norm(a::SU3fund{T}) where T <: AbstractFloat = sqrt((abs2(a.t1) + abs2(a.t2) + abs2(a.t3)))
""" """
norm(a::SU3fund{T}) norm(a::SU3fund{T})
Returns the norm of a fundamental element. Same result as sqrt(dot(a,a)). Returns the norm of a fundamental element. Same result as sqrt(dot(a,a)).
""" """
norm2(a::SU3fund{T}) where T <: AbstractFloat = (abs2(a.t1) + abs2(a.t2) + abs2(a.t1)) norm2(a::SU3fund{T}) where T <: AbstractFloat = (abs2(a.t1) + abs2(a.t2) + abs2(a.t3))
""" """
dot(a::SU3fund{T},b::SU3fund{T}) dot(a::SU3fund{T},b::SU3fund{T})