Skip to content

Commit

Permalink
Used adjoint instead of composing conjugation and transpose for neatn…
Browse files Browse the repository at this point in the history
…ess.
  • Loading branch information
iamazadi committed Mar 21, 2024
1 parent 9e8c79d commit ff17951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spacetime/spinvector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit ff17951

Please sign in to comment.