Skip to content

Commit

Permalink
Remove commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Sep 24, 2024
1 parent e010ffa commit 8012a94
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
16 changes: 0 additions & 16 deletions pineappl/src/lagrange_subgrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,6 @@ impl Subgrid for LagrangeSubgridV2 {
self.array = new_array;
}

// fn indexed_iter(&self) -> SubgridIndexedIter {
// let nodes: Vec<_> = self.interps.iter().map(Interp::node_values).collect();

// Box::new(self.array.indexed_iter::<3>().map(move |(index, v)| {
// (
// (index[0], index[1], index[2]),
// v * self
// .interps
// .iter()
// .enumerate()
// .map(|(i, interp)| interp.reweight(nodes[i][index[i]]))
// .product::<f64>(),
// )
// }))
// }

fn indexed_iter(&self) -> SubgridIndexedIter {
let nodes: Vec<_> = self.interps.iter().map(Interp::node_values).collect();

Expand Down
11 changes: 0 additions & 11 deletions pineappl/src/packed_subgrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ impl Subgrid for PackedQ1X2SubgridV1 {
}

fn mu2_grid(&self) -> Cow<[Mu2]> {
// Cow::Borrowed(&self.mu2_grid)
Cow::Owned(
self.node_values[0]
.values()
Expand Down Expand Up @@ -233,16 +232,6 @@ mod tests {
)
.into();

// let mu2 = vec![Mu2 {
// ren: 0.0,
// fac: 0.0,
// frg: -1.0,
// }];

// assert_eq!(grid1.mu2_grid().as_ref(), mu2);
// assert_eq!(grid1.x1_grid().as_ref(), x);
// assert_eq!(grid1.x2_grid(), grid1.x1_grid());

assert_eq!(
grid1.node_values(),
vec![
Expand Down

0 comments on commit 8012a94

Please sign in to comment.