KrisLibrary  1.0.0
Public Types | Public Member Functions | Public Attributes | List of all members
Math::IterativeMethod Struct Reference

Public Types

enum  Type { Jacobi, GaussSeidel, SOR }
 

Public Member Functions

 IterativeMethod (const Matrix &A, const Vector &b, Real omega=One)
 
void InitialRandom (Vector &x0, Real xmin=-One, Real xmax=One) const
 
void InitialOnes (Vector &x0) const
 
bool Solve (Type type, Vector &x0, int &maxIters, Real &tol) const
 
bool IsValid_Jacobi () const
 
bool IsValid_GaussSeidel () const
 
bool IsValid_SOR () const
 
void Iterate_Jacobi (Vector &x) const
 
void Iterate_GaussSeidel (Vector &x) const
 
void Iterate_SOR (Vector &x) const
 

Public Attributes

const MatrixA
 
const Vectorb
 
Real omega
 

The documentation for this struct was generated from the following files: