MatrixSpace< Form, Cmpt, Mrows, Ncols >::ConstBlock< SubTensor, BRowStart, BColStart > Class Template Reference

Const sub-block type. More...

Public Member Functions

 ConstBlock (const msType &matrix)
 Construct for the given matrix. More...
 
SubTensor operator() () const
 Construct and return the sub-ensor corresponding to this block. More...
 
const Cmpt & operator() (const direction i, const direction j) const
 (i, j) const element access operator More...
 

Static Public Member Functions

static direction m ()
 Return the number of rows in the block. More...
 
static direction n ()
 Return the number of columns in the block. More...
 

Static Public Attributes

static const direction mRows = SubTensor::mRows
 
static const direction nCols = SubTensor::nCols
 

Detailed Description

template<class Form, class Cmpt, direction Mrows, direction Ncols>
template<class SubTensor, direction BRowStart, direction BColStart>
class Foam::MatrixSpace< Form, Cmpt, Mrows, Ncols >::ConstBlock< SubTensor, BRowStart, BColStart >

Const sub-block type.

Definition at line 94 of file MatrixSpace.H.

Constructor & Destructor Documentation

◆ ConstBlock()

Member Function Documentation

◆ m()

static direction m ( )
inlinestatic

Return the number of rows in the block.

Definition at line 105 of file MatrixSpace.H.

References MatrixSpace< Form, Cmpt, Mrows, Ncols >::ConstBlock< SubTensor, BRowStart, BColStart >::mRows.

◆ n()

◆ operator()() [1/2]

SubTensor operator() ( ) const
inline

Construct and return the sub-ensor corresponding to this block.

Definition at line 383 of file MatrixSpaceI.H.

References MatrixSpace< Form, Cmpt, Mrows, Ncols >::operator()().

Referenced by MatrixSpace< Form, Cmpt, Mrows, Ncols >::ConstBlock< SubTensor, BRowStart, BColStart >::n(), and MatrixSpace< Form, Cmpt, Mrows, Ncols >::Block< SubTensor, BRowStart, BColStart >::n().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()() [2/2]

const Cmpt & operator() ( const direction  i,
const direction  j 
) const
inline

(i, j) const element access operator

Definition at line 394 of file MatrixSpaceI.H.

References MatrixSpace< Form, Cmpt, Mrows, Ncols >::operator()().

Here is the call graph for this function:

Member Data Documentation

◆ mRows

◆ nCols


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