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); }
public Matrix GetMatrix() { return(DeBoorMethods.SlowCreateInterpolationMatrix(grid, degree)); }