Type Alias LinearCombination

Source
pub type LinearCombination<G> = Sum<Weighted<Term<G>, <G as Group>::Scalar>>;
Expand description

Represents a sparse linear combination of scalars and group elements.

For example, it can represent an equation like: w_1 * (s_1 * P_1) + w_2 * (s_2 * P_2) + ... + w_n * (s_n * P_n)

where:

  • (s_i * P_i) are the terms, with s_i scalars (referenced by scalar_vars) and P_i group elements (referenced by element_vars).
  • w_i are the constant weight scalars

The indices refer to external lists managed by the containing LinearMap.

Aliased Typeยง

pub struct LinearCombination<G>(/* private fields */);