Skip to content

Commit

Permalink
widen type constraint for AD
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed Jul 26, 2023
1 parent 189aa11 commit 759f031
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LorentzVectorHEP"
uuid = "f612022c-142a-473f-8cfd-a09cf3793c6c"
authors = ["Jerry Ling <[email protected]> and contributors"]
version = "0.1.4"
version = "0.1.5"

[deps]
LorentzVectors = "3f54b04b-17fc-5cd4-9758-90c048d965e3"
Expand Down
3 changes: 2 additions & 1 deletion src/cylindrical.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
struct LorentzVectorCyl{T <: AbstractFloat}
struct LorentzVectorCyl{T <: Number}
pt::T
eta::T
phi::T
mass::T
end
LorentzVectorCyl(pt, eta, phi, mass) = LorentzVectorCyl(promote(pt, eta, phi, mass)...)

Base.show(io::IO, v::LorentzVectorCyl) = print(io, "$(typeof(v))(pt=$(v.pt), eta=$(v.eta), phi=$(v.phi), mass=$(v.mass))")

Expand Down

2 comments on commit 759f031

@Moelf
Copy link
Member Author

@Moelf Moelf commented on 759f031 Jul 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/88432

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.5 -m "<description of version>" 759f031f8c722770abb5d15fc11715970cc2fc07
git push origin v0.1.5

Please sign in to comment.