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, withs_i
scalars (referenced byscalar_vars
) andP_i
group elements (referenced byelement_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 */);