Public Types | |
typedef MatrixType::cmptType | cmptType |
Public Member Functions | |
ConstMatrixBlock (const MatrixType &matrix, const label m, const label n, const label mStart, const label nStart) | |
Construct block for matrix, size and location. More... | |
label | m () const |
Return the number of rows in the block. More... | |
label | n () const |
Return the number of columns in the block. More... | |
labelPair | sizes () const |
Return row/column sizes. More... | |
const cmptType & | operator() (const label i, const label j) const |
(i, j) const element access operator More... | |
operator Field< cmptType > () const | |
Convert a column of a matrix to a Field. More... | |
void | checkIndex (const label i, const label j) const |
Check if (i, j) is within range of row-column limits. More... | |
typedef MatrixType::cmptType cmptType |
Definition at line 89 of file MatrixBlock.H.
|
inline |
Construct block for matrix, size and location.
Definition at line 26 of file MatrixBlockI.H.
|
inline |
Return the number of rows in the block.
Definition at line 83 of file MatrixBlockI.H.
|
inline |
Return the number of columns in the block.
Definition at line 90 of file MatrixBlockI.H.
|
inline |
Return row/column sizes.
Definition at line 111 of file MatrixBlockI.H.
|
inline |
(i, j) const element access operator
Definition at line 129 of file MatrixBlockI.H.
Convert a column of a matrix to a Field.
Definition at line 27 of file MatrixBlock.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, and forAll.
void checkIndex | ( | const label | i, |
const label | j | ||
) | const |
Check if (i, j) is within range of row-column limits.
Definition at line 97 of file MatrixBlock.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.