OpenFOAM logo
Open Source CFD Toolkit

simpleMatrix Class Template Reference

Collaboration diagram for simpleMatrix:

Collaboration graph
[legend]
List of all members.

template<class T>
class Foam::simpleMatrix< T >


Public Member Functions

 simpleMatrix (const label)
 Construct given size.
 simpleMatrix (const Matrix< scalar > &, const Field< T > &)
 Construct from components.
 simpleMatrix (Istream &)
 Construct from Istream.
 simpleMatrix (const simpleMatrix< T > &)
 Construct as copy.
Matrix< scalar > & matrix ()
Field< T > & source ()
const Matrix< scalar > & matrix () const
const Field< T > & source () const
Field< T > solve () const
 Solve the matrix using Gaussian elimination with pivoting.
Field< T > LUsolve () const
 Solve the matrix using LU decomposition with pivoting.
void operator= (const simpleMatrix< T > &)

Static Public Member Functions

void solve (Matrix< scalar > &matrix, Field< T > &source)
 Solve the matrix using Gaussian elimination with pivoting.
void LUDecompose (Matrix< scalar > &matrix, labelList &pivotIndices)
 LU decompose the matrix with pivoting.
void LUBacksubstitute (const Matrix< scalar > &luMmatrix, const labelList &pivotIndices, Field< T > &source)
 LU back-substitution with given source, returning the solution.
void LUsolve (Matrix< scalar > &matrix, Field< T > &source)
 Solve the matrix using LU decomposition with pivoting.

Friends

simpleMatrix< T > operator+ (const simpleMatrix< T > &, const simpleMatrix< T > &)
simpleMatrix< T > operator- (const simpleMatrix< T > &, const simpleMatrix< T > &)
simpleMatrix< T > operator * (const scalar, const simpleMatrix< T > &)
Ostreamoperator (Ostream &, const simpleMatrix< T > &)

Constructor & Destructor Documentation

simpleMatrix const   label  ) 
 

Construct given size.

simpleMatrix const Matrix< scalar > &  ,
const Field< T > & 
 

Construct from components.

simpleMatrix Istream  ) 
 

Construct from Istream.

simpleMatrix const simpleMatrix< T > &   ) 
 

Construct as copy.


Member Function Documentation

void LUBacksubstitute const Matrix< scalar > &  luMmatrix,
const labelList pivotIndices,
Field< T > &  source
[static]
 

LU back-substitution with given source, returning the solution.

in the source

void LUDecompose Matrix< scalar > &  matrix,
labelList pivotIndices
[static]
 

LU decompose the matrix with pivoting.

Field<T> LUsolve  )  const
 

Solve the matrix using LU decomposition with pivoting.

and return the solution

void LUsolve Matrix< scalar > &  matrix,
Field< T > &  source
[static]
 

Solve the matrix using LU decomposition with pivoting.

returning the LU form of the matrix and the solution in the source

const Matrix<scalar>& matrix  )  const [inline]
 

Definition at line 136 of file simpleMatrix.H.

Matrix<scalar>& matrix  )  [inline]
 

Definition at line 126 of file simpleMatrix.H.

void operator= const simpleMatrix< T > &   ) 
 

Field<T> solve  )  const
 

Solve the matrix using Gaussian elimination with pivoting.

and return the solution

void solve Matrix< scalar > &  matrix,
Field< T > &  source
[static]
 

Solve the matrix using Gaussian elimination with pivoting.

const Field<T>& source  )  const [inline]
 

Definition at line 141 of file simpleMatrix.H.

References Foam::labelList, and Foam::T().

Here is the call graph for this function:

Field<T>& source  )  [inline]
 

Definition at line 131 of file simpleMatrix.H.


Friends And Related Function Documentation

Ostream& operator Ostream ,
const simpleMatrix< T > & 
[friend]
 

simpleMatrix<T> operator * const   scalar,
const simpleMatrix< T > & 
[friend]
 

simpleMatrix<T> operator+ const simpleMatrix< T > &  ,
const simpleMatrix< T > & 
[friend]
 

simpleMatrix<T> operator- const simpleMatrix< T > &  ,
const simpleMatrix< T > & 
[friend]
 


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org