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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Serialize this value into the given Serde serializer. Read more

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.

Return a slice of values of x1. If the subgrid does not use a grid, this method should return an empty slice.

Return a slice of values of x2. If the subgrid does not use a grid, this method should return an empty slice.

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.

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.

Returns true if fill was never called for this grid.

Merges other into this subgrid.

Scale the subgrid by factor.

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.

Returns an empty copy of the current subgrid.

Return an iterator over all non-zero elements of the subgrid.

Return statistics for this subgrid.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.