Module utils

Source
Expand description

This module holds some convenience methods for writing nice test functions for Amplitudes.

Functionsยง

generate_test_dataset_f32
Generate a test dataset for the reaction $\gamma p \to K_S K_S p$ with 32-bit precision.
generate_test_dataset_f64
Generate a test dataset for the reaction $\gamma p \to K_S K_S p$ with 64-bit precision.
generate_test_event_f32
Generate a test event for the reaction $\gamma p \to K_S K_S p$ with 32-bit precision.
generate_test_event_f64
Generate a test event for the reaction $\gamma p \to K_S K_S p$ with 64-bit precision.
is_close
Checks if two floating point numbers are essentially equal. See https://floating-point-gui.de/errors/comparison/.