kao.math.matvec.solver.GS Class Reference

Gauss-Siedel Iterative method. More...

Collaboration diagram for kao.math.matvec.solver.GS:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GS (Matrix A, Vector b)
 GS (Matrix A, Vector b, double tol)
 GS (Matrix A, Vector b, Vector xi)
 GS (Matrix A, Vector b, Vector xi, double tol)
Vector solve ()

Detailed Description

Gauss-Siedel Iterative method.

The Gauss-Siedel Iterative method for solving systems of the form:

\[ Ax = b \]

The default convergence tolerance is 1.0E-6.

Author:
David Kao

Constructor & Destructor Documentation

kao.math.matvec.solver.GS.GS ( Matrix  A,
Vector  b 
)

Create a new instance of the Gauss-Siedel solver using the default convergence tolerance.

Parameters:
A Matrix A
b Source Vector
kao.math.matvec.solver.GS.GS ( Matrix  A,
Vector  b,
double  tol 
)

Create a new instance of the Gauss-Siedel solver using a supplied convergence tolerance.

Parameters:
A Matrix A
b Source Vector
tol Convergence tolerance
kao.math.matvec.solver.GS.GS ( Matrix  A,
Vector  b,
Vector  xi 
)

Create a new instance of the Gauss-Siedel solver with an initial guess xi, using the default convergence tolerance.

Parameters:
A Matrix A
b Source Vector
xi Initial guess for x
kao.math.matvec.solver.GS.GS ( Matrix  A,
Vector  b,
Vector  xi,
double  tol 
)

Create a new instance of the Gauss-Siedel solver with an initial guess xi, using a supplied convergence tolerance.

Parameters:
A Matrix A
b Source Vector
xi Initial guess for x
tol Convergence tolerance

Member Function Documentation

Vector kao.math.matvec.solver.GS.solve (  ) 

Solve the system of linear equations.

Returns:
Solution Vector x

Generated on Wed Apr 21 22:01:41 2010 for kao-math by  doxygen 1.6.1