Esempio n. 1
0
        public static IGaNumMultivectorTemp SetTerms(this IGaNumMultivectorTemp tempMv, IGaNumMultivectorTemp termsMv)
        {
            foreach (var term in termsMv.NonZeroTerms)
            {
                tempMv.SetTermCoef(term.Key, term.Value);
            }

            return(tempMv);
        }
Esempio n. 2
0
        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);
        }