OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

simpleMatrix Class Template Reference

Inheritance diagram for simpleMatrix:

Inheritance graph
[legend]
Collaboration diagram for simpleMatrix:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 91 of file simpleMatrix.H.


Public Member Functions

 simpleMatrix (const label)
 Construct given size.
 simpleMatrix (const scalarMatrix &, const Field< T > &)
 Construct from components.
 simpleMatrix (Istream &)
 Construct from Istream.
 simpleMatrix (const simpleMatrix< T > &)
 Construct as copy.
Field< T > & source ()
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 > &)

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 > &)
Ostream & operator (Ostream &, const simpleMatrix< T > &)

Constructor & Destructor Documentation

simpleMatrix ( const   label  ) 

Construct given size.

simpleMatrix ( const scalarMatrix &  ,
const Field< T > &   
)

Construct from components.

simpleMatrix ( Istream &   ) 

Construct from Istream.

simpleMatrix ( const simpleMatrix< T > &   ) 

Construct as copy.


Member Function Documentation

Field<T>& source (  )  [inline]

Definition at line 121 of file simpleMatrix.H.

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

Definition at line 126 of file simpleMatrix.H.

Field<T> solve (  )  const

Solve the matrix using Gaussian elimination with pivoting.

and return the solution

Field<T> LUsolve (  )  const

Solve the matrix using LU decomposition with pivoting.

and return the solution

void operator= ( const simpleMatrix< T > &   ) 


Friends And Related Function Documentation

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

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

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

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


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd