-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
66 additions
and
15 deletions.
There are no files selected for viewing
62 changes: 54 additions & 8 deletions
62
crates/ekore/src/operator_matrix_elements/unpolarized/spacelike.rs
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,12 +1,58 @@ | ||
//! The unpolarized, space-like |OME| at various couplings power. | ||
use crate::harmonics::cache::Cache; | ||
use num::complex::Complex; | ||
use num::Zero; | ||
pub mod as1; | ||
|
||
// Compute the tower of the singlet |OME|. | ||
// pub fn A_singlet() -> Vec<Complex<f64>>{ | ||
/// Compute the tower of the singlet |OME|. | ||
pub fn A_singlet( | ||
matching_order_qcd: usize, | ||
c: &mut Cache, | ||
nf: u8, | ||
L: f64, | ||
) -> Vec<[[Complex<f64>; 3]; 3]> { | ||
let mut A_s = vec![ | ||
[ | ||
[ | ||
Complex::<f64>::zero(), | ||
Complex::<f64>::zero(), | ||
Complex::<f64>::zero() | ||
], | ||
[ | ||
Complex::<f64>::zero(), | ||
Complex::<f64>::zero(), | ||
Complex::<f64>::zero() | ||
], | ||
[ | ||
Complex::<f64>::zero(), | ||
Complex::<f64>::zero(), | ||
Complex::<f64>::zero() | ||
] | ||
]; | ||
matching_order_qcd | ||
]; | ||
if matching_order_qcd >= 1 { | ||
A_s[0] = as1::A_singlet(c, nf, L); | ||
} | ||
A_s | ||
} | ||
|
||
// } | ||
|
||
// Compute the tower of the non-singlet |OME|. | ||
// pub fn A_non_singlet() -> Vec<Complex<f64>>{ | ||
|
||
// } | ||
/// Compute the tower of the non-singlet |OME|. | ||
pub fn A_non_singlet( | ||
matching_order_qcd: usize, | ||
c: &mut Cache, | ||
nf: u8, | ||
L: f64, | ||
) -> Vec<[[Complex<f64>; 2]; 2]> { | ||
let mut A_ns = vec![ | ||
[ | ||
[Complex::<f64>::zero(), Complex::<f64>::zero()], | ||
[Complex::<f64>::zero(), Complex::<f64>::zero()] | ||
]; | ||
matching_order_qcd | ||
]; | ||
if matching_order_qcd >= 1 { | ||
A_ns[0] = as1::A_ns(c, nf, L); | ||
} | ||
A_ns | ||
} |
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