Пример #1
0
        public Dictionary <PFMM.Point, double> ActualSolution()
        {
            var fmm = new FastMultipoleMethod();

            var points = GetPointsForSolution();

            return(fmm.MethodsSingleLevel(points));
        }
Пример #2
0
        public double[] GetApproximateFmmSolution()
        {
            var fmm    = new FastMultipoleMethod();
            var mU     = new ZeydelSlarSolver().Gaus(GetMatrix(), GetVector());
            var points = GetMixedPoints(mU);

            var actualSolution = fmm.MethodsSingleLevel(points)
                                 .Where(p => Math.Abs(p.Key.AdditionalValue) < Double.Epsilon)
                                 .OrderBy(p => p.Key.Order)
                                 .Select(p => p.Value / (-2 * _m))
                                 .ToArray();

            return(actualSolution);
        }