Struct pineappl::empty_subgrid::EmptySubgridV1
source · [−]pub struct EmptySubgridV1 {}
Expand description
A subgrid type that is always empty.
Trait Implementations
sourceimpl Clone for EmptySubgridV1
impl Clone for EmptySubgridV1
sourcefn clone(&self) -> EmptySubgridV1
fn clone(&self) -> EmptySubgridV1
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 Default for EmptySubgridV1
impl Default for EmptySubgridV1
sourcefn default() -> EmptySubgridV1
fn default() -> EmptySubgridV1
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EmptySubgridV1
impl<'de> Deserialize<'de> for EmptySubgridV1
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<EmptySubgridV1> for SubgridEnum
impl From<EmptySubgridV1> for SubgridEnum
sourcefn from(v: EmptySubgridV1) -> SubgridEnum
fn from(v: EmptySubgridV1) -> SubgridEnum
Converts to this type from the input type.
sourceimpl Serialize for EmptySubgridV1
impl Serialize for EmptySubgridV1
sourceimpl Subgrid for EmptySubgridV1
impl Subgrid for EmptySubgridV1
sourcefn convolute(
&self,
_: &[f64],
_: &[f64],
_: &[Mu2],
_: &mut dyn FnMut(usize, usize, usize) -> f64
) -> f64
fn convolute(
&self,
_: &[f64],
_: &[f64],
_: &[Mu2],
_: &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<f64>)
fn fill(&mut self, _: &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, subgrid: &mut SubgridEnum, _: bool)
fn merge(&mut self, subgrid: &mut SubgridEnum, _: 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<EmptySubgridV1> for SubgridEnum
impl TryInto<EmptySubgridV1> for SubgridEnum
sourcefn try_into(
self
) -> Result<EmptySubgridV1, <Self as TryInto<EmptySubgridV1>>::Error>
fn try_into(
self
) -> Result<EmptySubgridV1, <Self as TryInto<EmptySubgridV1>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for EmptySubgridV1
impl Send for EmptySubgridV1
impl Sync for EmptySubgridV1
impl Unpin for EmptySubgridV1
impl UnwindSafe for EmptySubgridV1
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