public static IGaNumMultivectorTemp SetTerms(this IGaNumMultivectorTemp tempMv, IGaNumMultivectorTemp termsMv) { foreach (var term in termsMv.NonZeroTerms) { tempMv.SetTermCoef(term.Key, term.Value); } return(tempMv); }
public static IGaNumMultivectorTemp SetTerms(this IGaNumMultivectorTemp tempMv, IEnumerable <KeyValuePair <int, double> > terms) { foreach (var term in terms) { tempMv.SetTermCoef(term.Key, term.Value); } return(tempMv); }