mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-05-15 03:33:42 +02:00
Added project to algebra with multiplication for SU(2)
This commit is contained in:
parent
8b90c286a4
commit
23930e14cf
2 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,6 @@ function projalg(z::Complex{T}, a::SU3{T}) where T <: AbstractFloat
|
|||
sr3ov2*(ditr))
|
||||
end
|
||||
|
||||
projalg(z::Int, a::SU3{T}) where T <: AbstractFloat = projalg(a::SU3{T})
|
||||
|
||||
dot(a::SU3alg{T},b::SU3alg{T}) where T <: AbstractFloat = a.t1*b.t1 + a.t2*b.t2 + a.t3*b.t3 + a.t4*b.t4 + a.t5*b.t5 + a.t6*b.t6 + a.t7*b.t7 + a.t8*b.t8
|
||||
norm2(a::SU3alg{T}) where T <: AbstractFloat = a.t1^2 + a.t2^2 + a.t3^2 + a.t4^2 + a.t5^2 + a.t6^2 + a.t7^2 + a.t8^2
|
||||
norm(a::SU3alg{T}) where T <: AbstractFloat = sqrt(a.t1^2 + a.t2^2 + a.t3^2 + a.t4^2 + a.t5^2 + a.t6^2 + a.t7^2 + a.t8^2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue