A simple square matrix solver with scalar coefficients. More...
Public Member Functions | |
simpleMatrix (const label) | |
Construct given size. More... | |
simpleMatrix (const label, const scalar, const Type &) | |
Construct given size and initial values for coefficients and source. More... | |
simpleMatrix (const scalarSquareMatrix &, const Field< Type > &) | |
Construct from components. More... | |
simpleMatrix (Istream &) | |
Construct from Istream. More... | |
simpleMatrix (const simpleMatrix< Type > &) | |
Construct as copy. More... | |
Field< Type > & | source () |
Return access to the source. More... | |
const Field< Type > & | source () const |
Return const-access to the source. More... | |
Field< Type > | solve () const |
Solve the matrix using Gaussian elimination with pivoting. More... | |
Field< Type > | LUsolve () const |
Solve the matrix using LU decomposition with pivoting. More... | |
void | operator= (const simpleMatrix< Type > &) |
Friends | |
Ostream & | operator (Ostream &, const simpleMatrix< Type > &) |
A simple square matrix solver with scalar coefficients.
Definition at line 49 of file simpleMatrix.H.
simpleMatrix | ( | const label | mSize | ) |
Construct given size.
Note: this does not initialise the coefficients or the source.
Definition at line 34 of file simpleMatrix.C.
simpleMatrix | ( | const label | mSize, |
const scalar | coeffVal, | ||
const Type & | sourceVal | ||
) |
Construct given size and initial values for coefficients and source.
Definition at line 43 of file simpleMatrix.C.
simpleMatrix | ( | const scalarSquareMatrix & | matrix, |
const Field< Type > & | source | ||
) |
Construct from components.
Definition at line 56 of file simpleMatrix.C.
simpleMatrix | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 67 of file simpleMatrix.C.
simpleMatrix | ( | const simpleMatrix< Type > & | ) |
Construct as copy.
|
inline |
Return access to the source.
Definition at line 99 of file simpleMatrix.H.
|
inline |
Return const-access to the source.
Definition at line 105 of file simpleMatrix.H.
Foam::Field< Type > solve | ( | ) | const |
Solve the matrix using Gaussian elimination with pivoting.
and return the solution
Definition at line 77 of file simpleMatrix.C.
Foam::Field< Type > LUsolve | ( | ) | const |
Solve the matrix using LU decomposition with pivoting.
and return the solution
Definition at line 89 of file simpleMatrix.C.
void operator= | ( | const simpleMatrix< Type > & | m | ) |
Definition at line 103 of file simpleMatrix.C.
|
friend |