Function crpropa::scaleGrid(ref_ptr<Grid1f>, double)

Function Documentation

void crpropa::scaleGrid(ref_ptr<Grid1f> grid, double a)

Multiply all grid values by a given factor.

Parameters:
  • grid – a scalar grid (Grid1f)

  • a – scaling factor that will be used to multiply all points in grid