Struct pineappl::lagrange_subgrid::LagrangeSubgridV1
source · [−]pub struct LagrangeSubgridV1 { /* private fields */ }
Expand description
Subgrid which uses Lagrange-interpolation.
Implementations
sourceimpl LagrangeSubgridV1
impl LagrangeSubgridV1
sourcepub fn new(subgrid_params: &SubgridParams) -> Self
pub fn new(subgrid_params: &SubgridParams) -> Self
Constructor.
Trait Implementations
sourceimpl Clone for LagrangeSubgridV1
impl Clone for LagrangeSubgridV1
sourcefn clone(&self) -> LagrangeSubgridV1
fn clone(&self) -> LagrangeSubgridV1
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for LagrangeSubgridV1
impl<'de> Deserialize<'de> for LagrangeSubgridV1
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<LagrangeSubgridV1> for SubgridEnum
impl From<LagrangeSubgridV1> for SubgridEnum
sourcefn from(v: LagrangeSubgridV1) -> SubgridEnum
fn from(v: LagrangeSubgridV1) -> SubgridEnum
Converts to this type from the input type.
sourceimpl Serialize for LagrangeSubgridV1
impl Serialize for LagrangeSubgridV1
sourceimpl Subgrid for LagrangeSubgridV1
impl Subgrid for LagrangeSubgridV1
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<LagrangeSubgridV1> for SubgridEnum
impl TryInto<LagrangeSubgridV1> for SubgridEnum
sourcefn try_into(
self
) -> Result<LagrangeSubgridV1, <Self as TryInto<LagrangeSubgridV1>>::Error>
fn try_into(
self
) -> Result<LagrangeSubgridV1, <Self as TryInto<LagrangeSubgridV1>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for LagrangeSubgridV1
impl Send for LagrangeSubgridV1
impl Sync for LagrangeSubgridV1
impl Unpin for LagrangeSubgridV1
impl UnwindSafe for LagrangeSubgridV1
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