Beispiel #1
0
        public static GaSymMultivectorHash operator -(GaSymMultivectorHash mv1, GaSymMultivectorHash mv2)
        {
            var resultMv = GaSymMultivector.CreateCopyTemp(
                mv1.GaSpaceDimension,
                mv1.NonZeroExprTerms
                );

            foreach (var term in mv2.NonZeroExprTerms)
            {
                resultMv.AddFactor(term.Key, true, term.Value);
            }

            return(resultMv.ToHashMultivector());
        }
        public override IGaSymMultivectorTemp MapToTemp(GaSymMultivector mv1)
        {
            var columnVector = InternalMappingMatrix.Times(mv1);

            return(GaSymMultivector.CreateCopyTemp(columnVector));
        }
        public override IGaSymMultivectorTemp MapToTemp(int id1)
        {
            var columnVector = InternalMappingMatrix.GetColumn(id1);

            return(GaSymMultivector.CreateCopyTemp(columnVector));
        }