Struct pineappl::lagrange_subgrid::LagrangeSparseSubgridV1
source · [−]pub struct LagrangeSparseSubgridV1 { /* private fields */ }
Expand description
Subgrid which uses Lagrange-interpolation, but also stores its contents in a space-efficient structure.
Implementations
sourceimpl LagrangeSparseSubgridV1
impl LagrangeSparseSubgridV1
sourcepub fn new(subgrid_params: &SubgridParams) -> Self
pub fn new(subgrid_params: &SubgridParams) -> Self
Constructor.
Trait Implementations
sourceimpl Clone for LagrangeSparseSubgridV1
impl Clone for LagrangeSparseSubgridV1
sourcefn clone(&self) -> LagrangeSparseSubgridV1
fn clone(&self) -> LagrangeSparseSubgridV1
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for LagrangeSparseSubgridV1
impl<'de> Deserialize<'de> for LagrangeSparseSubgridV1
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<&LagrangeSubgridV1> for LagrangeSparseSubgridV1
impl From<&LagrangeSubgridV1> for LagrangeSparseSubgridV1
sourcefn from(subgrid: &LagrangeSubgridV1) -> Self
fn from(subgrid: &LagrangeSubgridV1) -> Self
Converts to this type from the input type.
sourceimpl From<LagrangeSparseSubgridV1> for SubgridEnum
impl From<LagrangeSparseSubgridV1> for SubgridEnum
sourcefn from(v: LagrangeSparseSubgridV1) -> SubgridEnum
fn from(v: LagrangeSparseSubgridV1) -> SubgridEnum
Converts to this type from the input type.
sourceimpl Serialize for LagrangeSparseSubgridV1
impl Serialize for LagrangeSparseSubgridV1
sourceimpl Subgrid for LagrangeSparseSubgridV1
impl Subgrid for LagrangeSparseSubgridV1
sourcefn convolute(
&self,
x1: &[f64],
x2: &[f64],
_: &[Mu2],
lumi: &mut dyn FnMut(usize, usize, usize) -> f64
) -> f64
fn convolute(
&self,
x1: &[f64],
x2: &[f64],
_: &[Mu2],
lumi: &mut dyn FnMut(usize, usize, usize) -> f64
) -> f64
Convolute the subgrid with a luminosity function, which takes indices as arguments that
correspond to the entries given in the slices
x1
, x2
and mu2
. Read moresourcefn fill(&mut self, ntuple: &Ntuple<f64>)
fn fill(&mut self, ntuple: &Ntuple<f64>)
Fills the subgrid with
weight
for the parton momentum fractions x1
and x2
, and the
scale q2
. Filling is currently only support where both renormalization and factorization
scale have the same value. Read moresourcefn x1_grid(&self) -> Cow<'_, [f64]>
fn x1_grid(&self) -> Cow<'_, [f64]>
Return a slice of values of
x1
. If the subgrid does not use a grid, this method should
return an empty slice. Read moresourcefn x2_grid(&self) -> Cow<'_, [f64]>
fn x2_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. Read moresourcefn merge(&mut self, other: &mut SubgridEnum, transpose: bool)
fn merge(&mut self, other: &mut SubgridEnum, transpose: bool)
Merges
other
into this subgrid.sourcefn symmetrize(&mut self)
fn symmetrize(&mut self)
Assumes that the initial states for this grid are the same and uses this to optimize the
grid by getting rid of almost half of the entries. Read more
sourcefn clone_empty(&self) -> SubgridEnum
fn clone_empty(&self) -> SubgridEnum
Returns an empty copy of the current subgrid.
sourcefn iter(&self) -> SubgridIter<'_>
fn iter(&self) -> SubgridIter<'_>
Return an iterator over all non-zero elements of the subgrid.
sourceimpl TryInto<LagrangeSparseSubgridV1> for SubgridEnum
impl TryInto<LagrangeSparseSubgridV1> for SubgridEnum
sourcefn try_into(
self
) -> Result<LagrangeSparseSubgridV1, <Self as TryInto<LagrangeSparseSubgridV1>>::Error>
fn try_into(
self
) -> Result<LagrangeSparseSubgridV1, <Self as TryInto<LagrangeSparseSubgridV1>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for LagrangeSparseSubgridV1
impl Send for LagrangeSparseSubgridV1
impl Sync for LagrangeSparseSubgridV1
impl Unpin for LagrangeSparseSubgridV1
impl UnwindSafe for LagrangeSparseSubgridV1
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more