A templated 2D square matrix of objects of <T>, where the n x n matrix dimension is known and used for subscript bounds checking, etc. More...
#include <OpenFOAM/SquareMatrix.H>
A templated 2D square matrix of objects of <T>, where the n x n matrix dimension is known and used for subscript bounds checking, etc.
Definition at line 52 of file SquareMatrix.H.
Inheritance diagram for SquareMatrix< Type >:
Collaboration diagram for SquareMatrix< Type >:Public Member Functions | |
| 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 Type &) | |
| Construct with given number of rows and rows. | |
| SquareMatrix (Istream &) | |
| Construct from Istream. | |
| autoPtr< SquareMatrix< Type > > | clone () const |
| Clone. | |
Public Member Functions inherited from Matrix< SquareMatrix< Type >, Type > | |
| 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 Type &) | |
| Construct with given number of rows and columns. | |
| Matrix (const Matrix< SquareMatrix< Type >, Type > &) | |
| 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< Type >, Type > &) |
| Transfer the contents of the argument Matrix into this Matrix. | |
| SquareMatrix< Type > | T () const |
| Return the transpose of the matrix. | |
| Type * | operator[] (const label) |
| Return subscript-checked row of Matrix. | |
| const Type * | operator[] (const label) const |
| Return subscript-checked row of constant Matrix. | |
| void | operator= (const Matrix< SquareMatrix< Type >, Type > &) |
| Assignment operator. Takes linear time. | |
| void | operator= (const Type &) |
| Assignment of all entries to the given value. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Matrix< SquareMatrix< Type >, Type > | |
| static const Matrix < SquareMatrix< Type >, Type > & | null () |
| Return a null Matrix. | |
|
inline |
Null constructor.
Definition at line 29 of file SquareMatrixI.H.
|
inline |
Construct given number of rows/columns.
Definition at line 35 of file SquareMatrixI.H.
|
inline |
Construct given number of rows and columns,.
It checks that m == n.
Definition at line 41 of file SquareMatrixI.H.
References Foam::exit(), Foam::FatalError, and FatalErrorIn.
|
inline |
Construct with given number of rows and rows.
and value for all elements. It checks that m == n.
Definition at line 56 of file SquareMatrixI.H.
References Foam::exit(), Foam::FatalError, and FatalErrorIn.
|
inline |
Construct from Istream.
Definition at line 75 of file SquareMatrixI.H.
|
inline |
Clone.
Reimplemented from Matrix< SquareMatrix< Type >, Type >.
Definition at line 82 of file SquareMatrixI.H.