ConstMatrixBlock< MatrixType > Class Template Reference

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 cmptTypeoperator() (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...
 

Detailed Description

template<class MatrixType>
class Foam::ConstMatrixBlock< MatrixType >

Definition at line 61 of file MatrixBlock.H.

Member Typedef Documentation

◆ cmptType

typedef MatrixType::cmptType cmptType

Definition at line 85 of file MatrixBlock.H.

Constructor & Destructor Documentation

◆ ConstMatrixBlock()

ConstMatrixBlock ( const MatrixType &  matrix,
const label  m,
const label  n,
const label  mStart,
const label  nStart 
)
inline

Construct block for matrix, size and location.

Definition at line 32 of file MatrixBlockI.H.

Member Function Documentation

◆ m()

Foam::label m
inline

Return the number of rows in the block.

Definition at line 90 of file MatrixBlockI.H.

◆ n()

Foam::label n
inline

Return the number of columns in the block.

Definition at line 97 of file MatrixBlockI.H.

◆ sizes()

Foam::labelPair sizes
inline

Return row/column sizes.

Definition at line 118 of file MatrixBlockI.H.

◆ operator()()

const MatrixType::cmptType & operator() ( const label  i,
const label  j 
) const
inline

(i, j) const element access operator

Definition at line 135 of file MatrixBlockI.H.

◆ operator Field< cmptType >()

operator Field< cmptType >

Convert a column of a matrix to a Field.

Definition at line 34 of file MatrixBlock.C.

References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, and forAll.

Here is the call graph for this function:

◆ checkIndex()

void checkIndex ( const label  i,
const label  j 
) const

Check if (i, j) is within range of row-column limits.

Definition at line 103 of file MatrixBlock.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

The documentation for this class was generated from the following files: