Example #1
0
        public override IGaNumMultivectorTemp MapToTemp(GaNumMultivector mv1, GaNumMultivector mv2)
        {
            if (mv1.GaSpaceDimension != DomainGaSpaceDimension || mv2.GaSpaceDimension != DomainGaSpaceDimension2)
            {
                throw new GMacNumericException("Multivector size mismatch");
            }

            return
                (GaNumMultivector
                 .CreateZeroTemp(TargetGaSpaceDimension)
                 .AddFactors(mv1.GetBiTermsForAcp(mv2, OrthogonalMetric)));
        }