Skip to content

Commit

Permalink
Add scale to python API
Browse files Browse the repository at this point in the history
To be deleted

To be deleted
  • Loading branch information
alecandido committed Nov 18, 2021
1 parent 32e63c9 commit 9576553
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pineappl_py/src/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,4 +465,14 @@ impl PyGrid {
})
.collect()
}

/// Scale all subgrids.
///
/// Parameters
/// ----------
/// factor : float
/// scalar factor by which scaling
pub fn scale(&mut self, factor: f64) {
self.grid.scale(factor);
}
}

0 comments on commit 9576553

Please sign in to comment.