示例#1
0
        public static Vector Interpolate(Vector y_knots, Grid grid, int deg)
        {
            if (deg == 2)
            {
                return(y_knots);
            }
            Matrix A = DeBoorMethods.SlowCreateInterpolationMatrix(grid, deg);

            Console.WriteLine(A);

            Vector coefs = Solver.BCGSTAB(A, y_knots, EPS);

            return(coefs);
        }
示例#2
0
 public Matrix GetMatrix()
 {
     return(DeBoorMethods.SlowCreateInterpolationMatrix(grid, degree));
 }