Skip to content

Commit

Permalink
rust: Remove leading underscore for used vars
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Sep 10, 2024
1 parent 429206a commit f3b1219
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,23 @@ pub fn A_gg(_c: &mut Cache, _nf: u8, L: f64) -> Complex<f64> {
}

/// Compute the |NLO| singlet |OME|.
pub fn A_singlet(c: &mut Cache, _nf: u8, L: f64) -> [[Complex<f64>; 3]; 3] {
pub fn A_singlet(c: &mut Cache, nf: u8, L: f64) -> [[Complex<f64>; 3]; 3] {
[
[A_gg(c, _nf, L), Complex::<f64>::zero(), A_gh(c, _nf, L)],
[A_gg(c, nf, L), Complex::<f64>::zero(), A_gh(c, nf, L)],
[
Complex::<f64>::zero(),
Complex::<f64>::zero(),
Complex::<f64>::zero(),
],
[A_hg(c, _nf, L), Complex::<f64>::zero(), A_hh(c, _nf, L)],
[A_hg(c, nf, L), Complex::<f64>::zero(), A_hh(c, nf, L)],
]
}

/// Compute the |NLO| non-singlet |OME|.
pub fn A_ns(c: &mut Cache, _nf: u8, L: f64) -> [[Complex<f64>; 2]; 2] {
pub fn A_ns(c: &mut Cache, nf: u8, L: f64) -> [[Complex<f64>; 2]; 2] {
[
[Complex::<f64>::zero(), Complex::<f64>::zero()],
[Complex::<f64>::zero(), A_hh(c, _nf, L)],
[Complex::<f64>::zero(), A_hh(c, nf, L)],
]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,16 +255,16 @@ pub fn A_gg(c: &mut Cache, _nf: u8, L: f64) -> Complex<f64> {
}

/// |NNLO| singlet |OME|
pub fn A_singlet(c: &mut Cache, _nf: u8, L: f64, is_msbar: bool) -> [[Complex<f64>; 3]; 3] {
let A_hq_2 = A_hq_ps(c, _nf, L);
let A_qq_2 = A_qq_ns(c, _nf, L);
let mut A_hg_2 = A_hg(c, _nf, L);
let A_gq_2 = A_gq(c, _nf, L);
let mut A_gg_2 = A_gg(c, _nf, L);
pub fn A_singlet(c: &mut Cache, nf: u8, L: f64, is_msbar: bool) -> [[Complex<f64>; 3]; 3] {
let A_hq_2 = A_hq_ps(c, nf, L);
let A_qq_2 = A_qq_ns(c, nf, L);
let mut A_hg_2 = A_hg(c, nf, L);
let A_gq_2 = A_gq(c, nf, L);
let mut A_gg_2 = A_gg(c, nf, L);

if is_msbar {
A_hg_2 -= 2.0 * 4.0 * CF * as1::A_hg(c, _nf, 1.0);
A_gg_2 -= 2.0 * 4.0 * CF * as1::A_gg(c, _nf, 1.0);
A_hg_2 -= 2.0 * 4.0 * CF * as1::A_hg(c, nf, 1.0);
A_gg_2 -= 2.0 * 4.0 * CF * as1::A_gg(c, nf, 1.0);
}

[
Expand All @@ -275,9 +275,9 @@ pub fn A_singlet(c: &mut Cache, _nf: u8, L: f64, is_msbar: bool) -> [[Complex<f6
}

/// |NNLO| non-singlet |OME|
pub fn A_ns(c: &mut Cache, _nf: u8, L: f64) -> [[Complex<f64>; 2]; 2] {
pub fn A_ns(c: &mut Cache, nf: u8, L: f64) -> [[Complex<f64>; 2]; 2] {
[
[A_qq_ns(c, _nf, L), Complex::<f64>::zero()],
[A_qq_ns(c, nf, L), Complex::<f64>::zero()],
[Complex::<f64>::zero(), Complex::<f64>::zero()],
]
}

0 comments on commit f3b1219

Please sign in to comment.