Skip to content

Commit

Permalink
Remove x{1,2}_grid methods
Browse files Browse the repository at this point in the history
  • Loading branch information
t7phy committed Oct 1, 2024
1 parent 751623a commit 6f13cbd
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 deletions.
8 changes: 0 additions & 8 deletions pineappl/src/empty_subgrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ impl Subgrid for EmptySubgridV1 {
Cow::Borrowed(&[])
}

fn x1_grid(&self) -> Cow<[f64]> {
Cow::Borrowed(&[])
}

fn x2_grid(&self) -> Cow<[f64]> {
Cow::Borrowed(&[])
}

fn node_values(&self) -> Vec<NodeValues> {
Vec::new()
}
Expand Down
8 changes: 0 additions & 8 deletions pineappl/src/lagrange_subgrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ impl Subgrid for LagrangeSubgridV2 {
.collect()
}

fn x1_grid(&self) -> Cow<[f64]> {
self.interps[1].node_values().into()
}

fn x2_grid(&self) -> Cow<[f64]> {
self.interps[2].node_values().into()
}

fn node_values(&self) -> Vec<NodeValues> {
self.interps
.iter()
Expand Down
8 changes: 0 additions & 8 deletions pineappl/src/packed_subgrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ impl Subgrid for PackedQ1X2SubgridV1 {
)
}

fn x1_grid(&self) -> Cow<[f64]> {
Cow::Owned(self.node_values[1].values())
}

fn x2_grid(&self) -> Cow<[f64]> {
Cow::Owned(self.node_values[2].values())
}

fn node_values(&self) -> Vec<NodeValues> {
self.node_values.clone()
}
Expand Down
8 changes: 0 additions & 8 deletions pineappl/src/subgrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,6 @@ pub trait Subgrid {
/// return an empty slice.
fn mu2_grid(&self) -> Cow<[Mu2]>;

/// Return a slice of values of `x1`. If the subgrid does not use a grid, this method should
/// return an empty slice.
fn x1_grid(&self) -> Cow<[f64]>;

/// Return a slice of values of `x2`. If the subgrid does not use a grid, this method should
/// return an empty slice.
fn x2_grid(&self) -> Cow<[f64]>;

/// TODO
fn node_values(&self) -> Vec<NodeValues>;

Expand Down

0 comments on commit 6f13cbd

Please sign in to comment.