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...
Public Member Functions | |
SquareMatrix () | |
Null constructor. More... | |
SquareMatrix (const label n) | |
Construct given number of rows/columns. More... | |
SquareMatrix (const label m, const label n) | |
Construct given number of rows and columns,. More... | |
SquareMatrix (const label m, const label n, const Type &) | |
Construct with given number of rows and rows. More... | |
SquareMatrix (Istream &) | |
Construct from Istream. More... | |
autoPtr< SquareMatrix< Type > > | clone () const |
Clone. More... | |
![]() | |
Matrix () | |
Null constructor. More... | |
Matrix (const label n, const label m) | |
Construct given number of rows and columns. More... | |
Matrix (const label n, const label m, const Type &) | |
Construct with given number of rows and columns. More... | |
Matrix (const Matrix< Form, Type > &) | |
Copy constructor. More... | |
Matrix (Istream &) | |
Construct from Istream. More... | |
autoPtr< Matrix< Form, Type > > | clone () const |
Clone. More... | |
~Matrix () | |
Destructor. More... | |
label | n () const |
Return the number of rows. More... | |
label | m () const |
Return the number of columns. More... | |
label | size () const |
Return the number of elements in matrix (n*m) More... | |
void | checki (const label i) const |
Check index i is within valid range (0 ... n-1). More... | |
void | checkj (const label j) const |
Check index j is within valid range (0 ... m-1). More... | |
void | clear () |
Clear the Matrix, i.e. set sizes to zero. More... | |
void | transfer (Matrix< Form, Type > &) |
Transfer the contents of the argument Matrix into this Matrix. More... | |
Form | T () const |
Return the transpose of the matrix. More... | |
Type * | operator[] (const label) |
Return subscript-checked row of Matrix. More... | |
const Type * | operator[] (const label) const |
Return subscript-checked row of constant Matrix. More... | |
void | operator= (const Matrix< Form, Type > &) |
Assignment operator. Takes linear time. More... | |
void | operator= (const Type &) |
Assignment of all entries to the given value. More... | |
Additional Inherited Members | |
![]() | |
static const Matrix< Form, Type > & | null () |
Return a null Matrix. More... | |
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 51 of file SquareMatrix.H.
|
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.
|
inline |
Construct with given number of rows and rows.
and value for all elements. It checks that m == n.
Definition at line 54 of file SquareMatrixI.H.
|
inline |
Construct from Istream.
Definition at line 70 of file SquareMatrixI.H.
|
inline |
Clone.
Definition at line 77 of file SquareMatrixI.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.