Пример #1
0
 public BiCGStab(MatrixMult A, int maxIter, double relTol,
                 MatrixMult preConditioner = null)
 {
     A_       = A;
     M_       = preConditioner;
     maxIter_ = maxIter;
     relTol_  = relTol;
 }
Пример #2
0
        public GMRES(MatrixMult A, int maxIter, double relTol,
                     MatrixMult preConditioner = null)
        {
            Utils.QL_REQUIRE(maxIter_ > 0, () => "maxIter must be greater then zero");

            A_       = A;
            M_       = preConditioner;
            maxIter_ = maxIter;
            relTol_  = relTol;
        }