mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-14 19:23:42 +02:00
Bug in norm and norm2 for SU3fund
This commit is contained in:
parent
b4a269f9af
commit
bcc53ff5cb
1 changed files with 2 additions and 2 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue