Enum pineappl::subgrid::SubgridEnum
source · pub enum SubgridEnum {
LagrangeSubgridV1(LagrangeSubgridV1),
NtupleSubgridV1(NtupleSubgridV1),
LagrangeSparseSubgridV1(LagrangeSparseSubgridV1),
LagrangeSubgridV2(LagrangeSubgridV2),
ImportOnlySubgridV1(ImportOnlySubgridV1),
EmptySubgridV1(EmptySubgridV1),
ImportOnlySubgridV2(ImportOnlySubgridV2),
}
Expand description
Enum which lists all possible Subgrid
variants possible.
Variants§
LagrangeSubgridV1(LagrangeSubgridV1)
Lagrange-interpolation subgrid.
NtupleSubgridV1(NtupleSubgridV1)
N-tuple subgrid.
LagrangeSparseSubgridV1(LagrangeSparseSubgridV1)
Lagrange-interpolation subgrid.
LagrangeSubgridV2(LagrangeSubgridV2)
Lagrange-interpolation subgrid with possibly different x1 and x2 bins.
ImportOnlySubgridV1(ImportOnlySubgridV1)
Import-only sparse subgrid with possibly different x1 and x2 bins.
EmptySubgridV1(EmptySubgridV1)
Empty subgrid.
ImportOnlySubgridV2(ImportOnlySubgridV2)
Same as ImportOnlySubgridV1
, but with support for different renormalization and
factorization scales choices.
Trait Implementations§
source§impl Clone for SubgridEnum
impl Clone for SubgridEnum
source§fn clone(&self) -> SubgridEnum
fn clone(&self) -> SubgridEnum
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for SubgridEnum
impl<'de> Deserialize<'de> for SubgridEnum
source§fn 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>,
source§impl From<&SubgridEnum> for Array3<f64>
impl From<&SubgridEnum> for Array3<f64>
source§fn from(subgrid: &SubgridEnum) -> Self
fn from(subgrid: &SubgridEnum) -> Self
source§impl From<&SubgridEnum> for ImportOnlySubgridV2
impl From<&SubgridEnum> for ImportOnlySubgridV2
source§fn from(subgrid: &SubgridEnum) -> Self
fn from(subgrid: &SubgridEnum) -> Self
source§impl From<EmptySubgridV1> for SubgridEnum
impl From<EmptySubgridV1> for SubgridEnum
source§fn from(v: EmptySubgridV1) -> SubgridEnum
fn from(v: EmptySubgridV1) -> SubgridEnum
source§impl From<ImportOnlySubgridV1> for SubgridEnum
impl From<ImportOnlySubgridV1> for SubgridEnum
source§fn from(v: ImportOnlySubgridV1) -> SubgridEnum
fn from(v: ImportOnlySubgridV1) -> SubgridEnum
source§impl From<ImportOnlySubgridV2> for SubgridEnum
impl From<ImportOnlySubgridV2> for SubgridEnum
source§fn from(v: ImportOnlySubgridV2) -> SubgridEnum
fn from(v: ImportOnlySubgridV2) -> SubgridEnum
source§impl From<LagrangeSparseSubgridV1> for SubgridEnum
impl From<LagrangeSparseSubgridV1> for SubgridEnum
source§fn from(v: LagrangeSparseSubgridV1) -> SubgridEnum
fn from(v: LagrangeSparseSubgridV1) -> SubgridEnum
source§impl From<LagrangeSubgridV1> for SubgridEnum
impl From<LagrangeSubgridV1> for SubgridEnum
source§fn from(v: LagrangeSubgridV1) -> SubgridEnum
fn from(v: LagrangeSubgridV1) -> SubgridEnum
source§impl From<LagrangeSubgridV2> for SubgridEnum
impl From<LagrangeSubgridV2> for SubgridEnum
source§fn from(v: LagrangeSubgridV2) -> SubgridEnum
fn from(v: LagrangeSubgridV2) -> SubgridEnum
source§impl From<NtupleSubgridV1> for SubgridEnum
impl From<NtupleSubgridV1> for SubgridEnum
source§fn from(v: NtupleSubgridV1) -> SubgridEnum
fn from(v: NtupleSubgridV1) -> SubgridEnum
source§impl Serialize for SubgridEnum
impl Serialize for SubgridEnum
source§impl Subgrid for SubgridEnum
impl Subgrid for SubgridEnum
source§fn mu2_grid(&self) -> Cow<'_, [Mu2]>
fn mu2_grid(&self) -> Cow<'_, [Mu2]>
Return a slice of Mu2
values corresponding to the (squared) renormalization and
factorization values of the grid. If the subgrid does not use a grid, this method should
return an empty slice.
source§fn 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.
source§fn 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.
source§fn convolute(
&self,
__enum_dispatch_arg_0: &[f64],
__enum_dispatch_arg_1: &[f64],
__enum_dispatch_arg_2: &[Mu2],
__enum_dispatch_arg_3: &mut dyn FnMut(usize, usize, usize) -> f64
) -> f64
fn convolute( &self, __enum_dispatch_arg_0: &[f64], __enum_dispatch_arg_1: &[f64], __enum_dispatch_arg_2: &[Mu2], __enum_dispatch_arg_3: &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
.
source§fn fill(&mut self, __enum_dispatch_arg_0: &Ntuple<f64>)
fn fill(&mut self, __enum_dispatch_arg_0: &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.
source§fn merge(
&mut self,
__enum_dispatch_arg_0: &mut SubgridEnum,
__enum_dispatch_arg_1: bool
)
fn merge( &mut self, __enum_dispatch_arg_0: &mut SubgridEnum, __enum_dispatch_arg_1: bool )
Merges other
into this subgrid.
source§fn 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.
source§fn clone_empty(&self) -> SubgridEnum
fn clone_empty(&self) -> SubgridEnum
Returns an empty copy of the current subgrid.
source§fn indexed_iter(&self) -> SubgridIndexedIter<'_>
fn indexed_iter(&self) -> SubgridIndexedIter<'_>
Return an iterator over all non-zero elements of the subgrid.
source§fn static_scale(&self) -> Option<Mu2>
fn static_scale(&self) -> Option<Mu2>
Return the static (single) scale, if this subgrid has one.