Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rustify ome.u.s.{as1, as2} #385

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
56a77e4
starting ome
tgiani May 31, 2024
95aec14
as1. Need some cleaning up
tgiani Jun 19, 2024
91aaf67
spacelike.rs
tgiani Jun 19, 2024
6eacd3b
attempt to implement python hook
tgiani Jun 21, 2024
b20732d
refactoring and adding Lsv for ome
tgiani Jul 1, 2024
637a1c3
Improve quad_ker module
felixhekhorn Jul 17, 2024
56e9062
rust: Move ome changes to patch
felixhekhorn Jul 17, 2024
12bb7fe
rust: Adjust some docs
felixhekhorn Jul 17, 2024
31f5d88
rust: Fix py callback signature
felixhekhorn Jul 17, 2024
865da0c
rust: Unify unravel of tensors
felixhekhorn Jul 17, 2024
7f055b2
Merge branch 'master' into ome_rust
felixhekhorn Jul 18, 2024
13bafbb
rust: Add several fixes
felixhekhorn Jul 18, 2024
0028c9d
rust: Fix doc abbrev
felixhekhorn Jul 18, 2024
880d7aa
rust: Update docs
felixhekhorn Jul 18, 2024
5f4bde6
rust: Set is_ome flag
felixhekhorn Jul 19, 2024
6323f1b
start as2
tgiani Jul 30, 2024
837187b
Merge branch 'master' into ome_rust
felixhekhorn Aug 9, 2024
7c1a1bd
Fix rust patches
felixhekhorn Aug 9, 2024
2b623d8
Merge branch 'master' into ome_rust
felixhekhorn Aug 22, 2024
4b1755b
rust: Fix a clippy warning
felixhekhorn Aug 22, 2024
56ed86c
Merge branch 'master' into ome_rust
felixhekhorn Aug 22, 2024
164c02b
rust: Protect cache properties
felixhekhorn Aug 22, 2024
33574b9
adding Sm2e and Sm2o implementation
tgiani Sep 4, 2024
e79f008
Merge branch 'ome_rust' of github.com:N3PDF/eko into ome_rust
tgiani Sep 4, 2024
e57e891
adding Sm1e, Sm1o, Sm21e, Sm21o implementation
tgiani Sep 4, 2024
70cdc7c
adding Sm3e and Sm3o
tgiani Sep 5, 2024
678efa9
working on as2
tgiani Sep 5, 2024
7ea6da2
Agq
tgiani Sep 5, 2024
429206a
more work on as2
tgiani Sep 9, 2024
f3b1219
rust: Remove leading underscore for used vars
felixhekhorn Sep 10, 2024
3f27e6b
rust: Add NNLO OME refs
felixhekhorn Sep 10, 2024
17a73d5
rust: Update NLO OME tests
felixhekhorn Sep 10, 2024
5239d8b
rust: Use cmplx eq in tests
felixhekhorn Sep 10, 2024
9b498b7
rust: Simplify assert_approx_eq_cmplx
felixhekhorn Sep 10, 2024
8f09ea0
rust: Activate NNLO OME
felixhekhorn Sep 10, 2024
2d9b7ca
start unit tests on as2
tgiani Sep 11, 2024
fc01791
Merge branch 'ome_rust' of github.com:N3PDF/eko into ome_rust
tgiani Sep 11, 2024
b7932aa
fix bug in Ahqps
tgiani Sep 11, 2024
b1beb83
Merge branch 'master' into ome_rust
felixhekhorn Sep 16, 2024
7d5dac7
Fix wrong merge
felixhekhorn Sep 16, 2024
ddc57bf
Fix OME patch
felixhekhorn Sep 16, 2024
33a1429
tests on as2
tgiani Oct 3, 2024
622f113
more work on as2 tests
tgiani Oct 3, 2024
457e52c
Update crates/ekore/src/operator_matrix_elements/unpolarized/spacelik…
felixhekhorn Oct 11, 2024
d1b6c53
rust: Add rel to cmplx eq
felixhekhorn Oct 11, 2024
7396c67
rust: Unify cmplx! macro call
felixhekhorn Oct 11, 2024
54d86d4
rust: Cast to float with .
felixhekhorn Oct 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
working on as2
  • Loading branch information
tgiani committed Sep 5, 2024
commit 678efa9e4490da2b56a977dbea5896fd7eca1801
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,102 @@ pub fn A_hq_ps(c: &mut Cache, _nf: u8, L: f64) -> Complex<f64> {

CF * TR * (a_hq_l2 * L.pow(2) + a_hq_l1 * L + a_hq_l0)
}

/// |NNLO| heavy-gluon |OME|
/// It is given in Eq.() of
pub fn A_hg(c: &mut Cache, _nf: u8, L: f64) -> Complex<f64> {
let N = c.n();
let S1 = c.get(K::S1);
let S2 = c.get(K::S2);
let Sm2e = c.get(K::Sm2e);
let S3 = c.get(K::S3);
let Sm21e = c.get(K::Sm21e);
let Sm3e = c.get(K::Sm3e);
let S1m = S1 - 1. / N;
let S2m = S2 - 1. / N.powu(2);

#[rustfmt::skip]
let a_hg_l0 =
-(
3084.
+ 192. / N.powu(4)
+ 1056. / N.powu(3)
+ 2496. / N.powu(2)
+ 2928. / N
+ 2970. * N
+ 1782. * N.powu(2)
+ 6. * N.powu(3)
- 1194. * N.powu(4)
- 1152. * N.powu(5)
- 516. * N.powu(6)
- 120. * N.powu(7)
- 12. * N.powu(8)
)
/ ((N - 1.) * ((1. + N) * (2. + N)).powu(4))
+ (
764.
- 16. / N.powu(4)
- 80. / N.powu(3)
- 100. / N.powu(2)
+ 3. * 72. / N
+ 208. * N.powu(3)
+ 3. * (288. * N + 176. * N.powu(2) + 16. * N.powu(4))
)
/ (3. * (1. + N).powu(4) * (2. + N))
+ 12. * Sm3e * (2. + N + N.powu(2)) / (N * (1. + N) * (2. + N))
- 24. * Sm2e * (4. + N - N.powu(2)) / ((1. + N) * (2. + N)).powu(2)
- S1
* (48. / N + 432. + 564. * N + 324. * N.powu(2) + 138. * N.powu(3) + 48. * N.powu(4) + 6. * N.powu(5))
/ ((1. + N) * (2. + N)).powu(3)
+ S1
* (-160. - 32. / N.powu(2) - 80. / N + 8. * N * (N - 1.))
/ (3. * (1. + N).powu(2) * (2. + N))
- 6. * S1.powu(2) * (11. + 8. * N + N.powu(2) + 2. / N) / ((1. + N) * (2. + N)).powu(2)
+ 8. * S1.powu(2) * (2. / (3. * N) + 1.) / (N * (2. + N))
- 2.
* S2
* (63. + 48. / N.powu(2) + 54. / N + 39. * N + 63. * N.powu(2) + 21. * N.powu(3))
/ ((N - 1.) * (1. + N).powu(2) * (2. + N).powu(2))
+ 8. * S2 * (17. - 2. / N.powu(2) - 5. / N + N * (17. + N)) / (3. * (1. + N).powu(2) * (2. + N))
+ (1. + 2. / N + N)
/ ((1. + N) * (2. + N))
* (24. * Sm2e * S1 + 10. * S1.powu(3) / 9. + 46. * S1 * S2 / 3. + 176. * S3 / 9. - 24. * Sm21e);

#[rustfmt::skip]
let mut a_hg_l1 =
2.
* (
640. + 2192. * N
+ 2072. * N.powu(2)
+ 868. * N.powu(3)
+ 518. * N.powu(4)
+ 736. * N.powu(5)
+ 806. * N.powu(6)
+ 542. * N.powu(7)
+ 228. * N.powu(8)
+ 38. * N.powu(9)
)
/ (3. * (N * (N + 1.) * (N + 2.)).powu(3) * (N - 1.));

a_hg_l1 -= 2.
* (N * (N.powu(2) - 1.)
* (N + 2.)
* (4. * (36. + N * (88. + N * (33. + N * (8. + 9. * N)))) * S1m
+ N * (N + 1.)
* (N + 2.)
* (2. + N + N.powu(2))
* (10. * S1m.powu(2) + 18. * (2. * Sm2e + ZETA2) + 26. * S2m)))
/ (3. * (N * (N + 1.) * (N + 2.)).powu(3) * (N - 1.));

a_hg_l1 += 12. * ZETA2 * (-2. + N + N.powu(3)) / (N * (N.powu(2) - 1.) * (N + 2.));

#[rustfmt::skip]
let a_hg_l2 = (
4.
* (2. + N + N.powu(2))
* (2. * (-11. + N + N.powu(2)) * (1. + N + N.powu(2)) / (N - 1.))
/ (3. * (N * (N + 1.) * (N + 2.)).powu(2))
) + 20. * (2. + N + N.powu(2)) * S1 / (3. * N * (N + 1.) * (N + 2.));

a_hg_l2 * L.pow(2) + a_hg_l1 * L + a_hg_l0
}
Loading