Example #1
0
        public GaSymMultivector GetSymMultivectorByGrades(int gaSpaceDim, params int[] grades)
        {
            var mv = GaSymMultivector.CreateZero(gaSpaceDim);

            var basisBladeIDs =
                GMacMathUtils.BasisBladeIDsOfGrades(
                    mv.VSpaceDimension,
                    grades
                    );

            foreach (var basisBladeId in basisBladeIDs)
            {
                mv.SetTermCoef(basisBladeId, GetSymbolicScalar());
            }

            return(mv);
        }