From ff17951a9f084fd0e7f93ffd35227cfa27529a03 Mon Sep 17 00:00:00 2001 From: Mohammad Javad Azadi Date: Thu, 21 Mar 2024 19:19:08 +0330 Subject: [PATCH] Used adjoint instead of composing conjugation and transpose for neatness. --- src/spacetime/spinvector.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spacetime/spinvector.jl b/src/spacetime/spinvector.jl index d6be3dc..14daddc 100644 --- a/src/spacetime/spinvector.jl +++ b/src/spacetime/spinvector.jl @@ -99,7 +99,7 @@ end vec(v::SpinVector) = vec(v.nullvector) -mat(v::SpinVector) = [v.ξ; v.η] * transpose([conj(v.ξ); conj(v.η)]) +mat(v::SpinVector) = [v.ξ; v.η] * adjoint([v.ξ; v.η]) Base.isapprox(u::SpinVector, v::SpinVector; atol::Float64 = TOLERANCE) = isapprox(u.nullvector, v.nullvector, atol = atol) &&