public class BiconjugateGradient
extends java.lang.Object
| Constructor and Description |
|---|
BiconjugateGradient() |
| Modifier and Type | Method and Description |
|---|---|
static double |
solve(Matrix A,
double[] b,
double[] x)
Solves A * x = b by iterative biconjugate gradient method.
|
static double |
solve(Matrix A,
double[] b,
double[] x,
double tol)
Solves A * x = b by iterative biconjugate gradient method.
|
static double |
solve(Matrix A,
double[] b,
double[] x,
double tol,
int itol)
Solves A * x = b by iterative biconjugate gradient method.
|
static double |
solve(Matrix A,
double[] b,
double[] x,
double tol,
int itol,
int maxIter)
Solves A * x = b by iterative biconjugate gradient method.
|
static double |
solve(Matrix A,
Preconditioner Ap,
double[] b,
double[] x)
Solves A * x = b by iterative biconjugate gradient method.
|
static double |
solve(Matrix A,
Preconditioner Ap,
double[] b,
double[] x,
double tol)
Solves A * x = b by iterative biconjugate gradient method.
|
static double |
solve(Matrix A,
Preconditioner Ap,
double[] b,
double[] x,
double tol,
int itol)
Solves A * x = b by iterative biconjugate gradient method.
|
static double |
solve(Matrix A,
Preconditioner Ap,
double[] b,
double[] x,
double tol,
int itol,
int maxIter)
Solves A * x = b by iterative biconjugate gradient method.
|
public static double solve(Matrix A, double[] b, double[] x)
b - the right hand side of linear equations.x - on input, x should be set to an initial guess of the solution
(or all zeros). On output, x is reset to the improved solution.public static double solve(Matrix A, Preconditioner Ap, double[] b, double[] x)
Ap - the preconditioned matrix of A.b - the right hand side of linear equations.x - on input, x should be set to an initial guess of the solution
(or all zeros). On output, x is reset to the improved solution.public static double solve(Matrix A, double[] b, double[] x, double tol)
b - the right hand side of linear equations.x - on input, x should be set to an initial guess of the solution
(or all zeros). On output, x is reset to the improved solution.tol - the desired convergence tolerance.public static double solve(Matrix A, Preconditioner Ap, double[] b, double[] x, double tol)
Ap - the preconditioned matrix of A.b - the right hand side of linear equations.x - on input, x should be set to an initial guess of the solution
(or all zeros). On output, x is reset to the improved solution.tol - the desired convergence tolerance.public static double solve(Matrix A, double[] b, double[] x, double tol, int itol)
b - the right hand side of linear equations.x - on input, x should be set to an initial guess of the solution
(or all zeros). On output, x is reset to the improved solution.itol - specify which convergence test is applied. If itol = 1,
iteration stops when |Ax - b| / |b| is less than the parameter tolerance.
If itol = 2, the stop criterion is
|A-1 (Ax - b)| / |A-1b| is less than tolerance.
If tol = 3, |xk+1 - xk|2 is less than
tolerance. The setting of tol = 4 is same as tol = 3 except that the
L∞ norm instead of L2.tol - the desired convergence tolerance.public static double solve(Matrix A, Preconditioner Ap, double[] b, double[] x, double tol, int itol)
Ap - the preconditioned matrix of A.b - the right hand side of linear equations.x - on input, x should be set to an initial guess of the solution
(or all zeros). On output, x is reset to the improved solution.itol - specify which convergence test is applied. If itol = 1,
iteration stops when |Ax - b| / |b| is less than the parameter tolerance.
If itol = 2, the stop criterion is
|A-1 (Ax - b)| / |A-1b| is less than tolerance.
If tol = 3, |xk+1 - xk|2 is less than
tolerance. The setting of tol = 4 is same as tol = 3 except that the
L∞ norm instead of L2.tol - the desired convergence tolerance.public static double solve(Matrix A, double[] b, double[] x, double tol, int itol, int maxIter)
b - the right hand side of linear equations.x - on input, x should be set to an initial guess of the solution
(or all zeros). On output, x is reset to the improved solution.itol - specify which convergence test is applied. If itol = 1,
iteration stops when |Ax - b| / |b| is less than the parameter tolerance.
If itol = 2, the stop criterion is
|A-1 (Ax - b)| / |A-1b| is less than tolerance.
If tol = 3, |xk+1 - xk|2 is less than
tolerance. The setting of tol = 4 is same as tol = 3 except that the
L∞ norm instead of L2.tol - the desired convergence tolerance.maxIter - the maximum number of allowed iterations.public static double solve(Matrix A, Preconditioner Ap, double[] b, double[] x, double tol, int itol, int maxIter)
Ap - the preconditioned matrix of A.b - the right hand side of linear equations.x - on input, x should be set to an initial guess of the solution
(or all zeros). On output, x is reset to the improved solution.itol - specify which convergence test is applied. If itol = 1,
iteration stops when |Ax - b| / |b| is less than the parameter tolerance.
If itol = 2, the stop criterion is
|A-1 (Ax - b)| / |A-1b| is less than tolerance.
If tol = 3, |xk+1 - xk|2 is less than
tolerance. The setting of tol = 4 is same as tol = 3 except that the
L∞ norm instead of L2.tol - the desired convergence tolerance.maxIter - the maximum number of allowed iterations.