-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this release, the latest changes from `dev` are merged into `main`. Caused by issues with the git history, the changes seen in this PR also include commits since release 0.1.4. ### Lesson learned After merging the release branch into `main`, the former should not been touched till it's merged into `dev`.
- Loading branch information
Showing
15 changed files
with
135 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "QEDbase" | ||
uuid = "10e22c08-3ccb-4172-bfcf-7d7aa3d04d93" | ||
authors = ["Uwe Hernandez Acosta <[email protected]>", "Simeon Ehrig", "Klaus Steiniger", "Tom Jungnickel", "Anton Reinhard"] | ||
version = "0.1.5" | ||
version = "0.1.6" | ||
|
||
[deps] | ||
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197" | ||
|
@@ -24,7 +24,8 @@ StaticArrays = "1.2.13" | |
julia = "1.6" | ||
|
||
[extras] | ||
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] | ||
test = ["SafeTestsets","Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
using QEDbase | ||
using StaticArrays | ||
|
||
unary_methods = [-, +] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
|
||
using QEDbase | ||
using Random | ||
|
||
const ATOL = 1e-15 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
using QEDbase | ||
using LinearAlgebra | ||
using Random | ||
using SparseArrays | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using QEDbase | ||
using StaticArrays | ||
|
||
unary_methods = [-, +] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using QEDbase | ||
using Random | ||
|
||
const ATOL = 1e-15 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
using QEDbase | ||
using Test | ||
using SafeTestsets | ||
|
||
@testset "QEDbase.jl" begin | ||
include("dirac_tensor.jl") | ||
include("lorentz_vector.jl") | ||
include("lorentz_interface.jl") | ||
begin | ||
@time @safetestset "Dirac tensors" begin | ||
include("dirac_tensor.jl") | ||
end | ||
|
||
include("gamma_matrices.jl") | ||
@time @safetestset "Lorentz Vectors" begin | ||
include("lorentz_vector.jl") | ||
end | ||
|
||
include("particle_spinors.jl") | ||
include("four_momentum.jl") | ||
@time @safetestset "Lorentz interface" begin | ||
include("lorentz_interface.jl") | ||
end | ||
@time @safetestset "Gamma matrices" begin | ||
include("gamma_matrices.jl") | ||
end | ||
|
||
include("particles.jl") | ||
@time @safetestset "particle spinors" begin | ||
include("particle_spinors.jl") | ||
end | ||
|
||
@time @safetestset "four momentum" begin | ||
include("four_momentum.jl") | ||
end | ||
|
||
@time @safetestset "particles" begin | ||
include("particles.jl") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
Returns the cartesian coordinates (E,px,py,pz) for given spherical coordiantes | ||
(E, rho, cos_theta, phi), where rho denotes the length of the respective three-momentum, | ||
theta is the polar- and phi the azimuthal angle. | ||
""" | ||
function _cartesian_coordinates(E, rho, cth, phi) | ||
sth = sqrt(1 - cth^2) | ||
sphi, cphi = sincos(phi) | ||
return (E, rho * sth * cphi, rho * sth * sphi, rho * cth) | ||
end |