channel

Macro channel 

Source
macro_rules! channel {
    ($factor:literal * ($($pids:expr),+) $(+ $more_factors:literal * ($($more_pids:expr),+))*) => { ... };
}
Expand description

Helper macro to quickly generate a Channel at compile time.

ยงExamples

In the following example entry1 and entry2 represent the same values:

use pineappl::channel;

let entry1 = channel![1.0 * (2, 2) + 1.0 * (4, 4)];
let entry2 = channel![1.0 * (4, 4) + 1.0 * (2, 2)];

assert_eq!(entry1, entry2);