Beispiel #1
0
        public GaNumMapBilinearCoefSums SetFactor(int termId, int domainBasisBladeId1, int domainBasisBladeId2, double factorValue)
        {
            GaNumMapBilinearCoefSumsTerm sum;

            if (!_coefSumsTable.TryGetValue(termId, out sum))
            {
                sum = new GaNumMapBilinearCoefSumsTerm(termId);
                _coefSumsTable[termId] = sum;
            }

            sum.AddFactor(domainBasisBladeId1, domainBasisBladeId2, factorValue);

            return(this);
        }
Beispiel #2
0
        public GaNumMapBilinearCoefSums SetFactor(int targetBasisBladeId, int domainBasisBladeId1, int domainBasisBladeId2, bool isNegative = false)
        {
            GaNumMapBilinearCoefSumsTerm sum;

            if (!_coefSumsTable.TryGetValue(targetBasisBladeId, out sum))
            {
                sum = new GaNumMapBilinearCoefSumsTerm(targetBasisBladeId);
                _coefSumsTable[targetBasisBladeId] = sum;
            }

            sum.AddFactor(domainBasisBladeId1, domainBasisBladeId2, isNegative);

            return(this);
        }