#[no_mangle]
pub unsafe extern "C" fn pineappl_grid_set_remapper(
    grid: *mut Grid,
    dimensions: usize,
    normalizations: *const f64,
    limits: *const f64
)
Expand description

Sets a remapper for the grid. This can be used to ‘upgrade’ one-dimensional bin limits to N-dimensional ones. The new bin limits must be given in the form of tuples giving the left and right limits, and a tuple for each dimension.

§Safety

If grid does not point to a valid Grid object, for example when grid is the null pointer, this function is not safe to call. The arrays normalizations and limits must be at least as long as the number of bins of the grid and 2 * dimensions * bins, respectively.

§Panics

TODO