A templated 2D rectangular matrix of objects of <T>, where the n x n matrix dimension is known and used for subscript bounds checking, etc. More...
#include <OpenFOAM/RectangularMatrix.H>
A templated 2D rectangular 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 RectangularMatrix.H.
Public Member Functions | |
RectangularMatrix () | |
Null constructor. | |
RectangularMatrix (const label m, const label n) | |
Construct given number of rows and columns,. | |
RectangularMatrix (const label m, const label n, const Type &) | |
Construct with given number of rows and columns. | |
RectangularMatrix (Istream &) | |
Construct from Istream. | |
autoPtr< RectangularMatrix < Type > > | clone () const |
Clone. | |
![]() | |
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< RectangularMatrix< 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< RectangularMatrix< Type >, Type > &) |
Transfer the contents of the argument Matrix into this Matrix. | |
RectangularMatrix< 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< RectangularMatrix< Type >, Type > &) |
Assignment operator. Takes linear time. | |
void | operator= (const Type &) |
Assignment of all entries to the given value. |
Additional Inherited Members | |
![]() | |
static const Matrix < RectangularMatrix< Type > , Type > & | null () |
Return a null Matrix. |
|
inline |
Null constructor.
Definition at line 29 of file RectangularMatrixI.H.
|
inline |
Construct given number of rows and columns,.
Definition at line 36 of file RectangularMatrixI.H.
|
inline |
Construct with given number of rows and columns.
and value for all elements.
Definition at line 46 of file RectangularMatrixI.H.
|
inline |
Construct from Istream.
Definition at line 56 of file RectangularMatrixI.H.
|
inline |
Clone.
Reimplemented from Matrix< RectangularMatrix< Type >, Type >.
Definition at line 63 of file RectangularMatrixI.H.