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

Function Documentation

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

Multiply all grid values by a given factor.

Parameters:
  • grid – a vector grid (Grid3f)

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