public BiCGStab(MatrixMult A, int maxIter, double relTol, MatrixMult preConditioner = null) { A_ = A; M_ = preConditioner; maxIter_ = maxIter; relTol_ = relTol; }
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; }