Exemplo n.º 1
0
 public bool Make(string filePath)
 {
     if (grid.inputSpline(filePath))
     {
         Array.Resize(ref f, 4 * grid.getXSize() * grid.getYSize());
         matrix = new Matrix(4 * grid.getXSize() * grid.getYSize());
         matrix.profileDefining(grid);
         MatrixFilling();
         los    = new LOS();
         result = los.makeSLAU(matrix, f);
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 public bool calculateWithNewComponent(double alpha, double beta)
 {
     alphaComponent = alpha;
     betaComponent  = beta;
     matrix.nullMatrix();
     for (int i = 0; i < f.Length; i++)
     {
         f[i] = 0;
     }
     MatrixFilling();
     los    = new LOS();
     result = los.makeSLAU(matrix, f);
     return(true);
 }
Exemplo n.º 3
0
 public MyTask()
 {
     grid  = new Grid();
     basis = new Basis();
     los   = new LOS();
 }