From bcc53ff5cbaf8c13c6b4c7b9cc161408da8cb91b Mon Sep 17 00:00:00 2001 From: "Fernando P. Panadero" Date: Mon, 20 Nov 2023 12:42:32 +0100 Subject: [PATCH] Bug in norm and norm2 for SU3fund --- src/Groups/FundamentalSU3.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Groups/FundamentalSU3.jl b/src/Groups/FundamentalSU3.jl index 987a5ce..d429d5d 100644 --- a/src/Groups/FundamentalSU3.jl +++ b/src/Groups/FundamentalSU3.jl @@ -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). """ -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}) 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})