FreeFOAM The Cross-Platform CFD Toolkit
LUscalarMatrix Class Reference

Foam::LUscalarMatrix. More...

#include <OpenFOAM/LUscalarMatrix.H>


Detailed Description

+ Inheritance diagram for LUscalarMatrix:
+ Collaboration diagram for LUscalarMatrix:

List of all members.

Public Member Functions

 LUscalarMatrix (const scalarSquareMatrix &)
 Construct from scalarSquareMatrix and perform LU decomposition.
 LUscalarMatrix (const lduMatrix &, const FieldField< Field, scalar > &interfaceCoeffs, const lduInterfaceFieldPtrsList &interfaces)
 Construct from lduMatrix and perform LU decomposition.
template<class T >
void solve (Field< T > &source) const
 Solve the matrix using the LU decomposition with pivoting.
template<class Type >
void solve (Field< Type > &sourceSol) const
- Public Member Functions inherited from SquareMatrix< scalar >
 SquareMatrix ()
 Null constructor.
 SquareMatrix (const label n)
 Construct given number of rows/columns.
 SquareMatrix (const label m, const label n)
 Construct given number of rows and columns,.
 SquareMatrix (const label m, const label n, const scalar &)
 Construct with given number of rows and rows.
 SquareMatrix (Istream &)
 Construct from Istream.
autoPtr< SquareMatrix< scalar > > clone () const
 Clone.
- Public Member Functions inherited from Matrix< SquareMatrix< scalar >, scalar >
 Matrix ()
 Null constructor.
 Matrix (const label n, const label m)
 Construct given number of rows and columns.
 Matrix (const label n, const label m, const scalar &)
 Construct with given number of rows and columns.
 Matrix (const Matrix< SquareMatrix< scalar >, scalar > &)
 Copy constructor.
 Matrix (Istream &)
 Construct from Istream.
 ~Matrix ()
label n () const
 Return the number of rows.
label m () const
 Return the number of columns.
label size () const
 Return the number of elements in matrix (n*m)
void checki (const label i) const
 Check index i is within valid range (0 ... n-1).
void checkj (const label j) const
 Check index j is within valid range (0 ... m-1).
void clear ()
 Clear the Matrix, i.e. set sizes to zero.
void transfer (Matrix< SquareMatrix< scalar >, scalar > &)
 Transfer the contents of the argument Matrix into this Matrix.
SquareMatrix< scalar > T () const
 Return the transpose of the matrix.
scalar * operator[] (const label)
 Return subscript-checked row of Matrix.
const scalar * operator[] (const label) const
 Return subscript-checked row of constant Matrix.
void operator= (const Matrix< SquareMatrix< scalar >, scalar > &)
 Assignment operator. Takes linear time.
void operator= (const scalar &)
 Assignment of all entries to the given value.

Constructor & Destructor Documentation

LUscalarMatrix ( const scalarSquareMatrix matrix)

Construct from scalarSquareMatrix and perform LU decomposition.

Definition at line 33 of file LUscalarMatrix.C.

References Foam::LUDecompose().


Member Function Documentation

void solve ( Field< T > &  source) const

Solve the matrix using the LU decomposition with pivoting.

returning the solution in the source


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