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

Sub-block type. More...

Public Member Functions

 Block (msType &matrix)
 Construct for the given matrix. More...
 
template<class Form2 >
void operator= (const MatrixSpace< Form2, Cmpt, SubTensor::mRows, SubTensor::nCols > &matrix)
 Assignment to a matrix. More...
 
template<class VSForm >
void operator= (const VectorSpace< VSForm, Cmpt, SubTensor::mRows > &v)
 Assignment to a column vector. More...
 
SubTensor operator() () const
 Construct and return the sub-tensor corresponding to this block. More...
 
const Cmpt & operator() (const direction i, const direction j) const
 (i, j) const element access operator More...
 
Cmpt & operator() (const direction i, const direction j)
 (i, j) element access operator More...
 

Static Public Member Functions

static direction m ()
 The number of rows in the block. More...
 
static direction n ()
 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 >::Block< SubTensor, BRowStart, BColStart >

Sub-block type.

Definition at line 142 of file MatrixSpace.H.

Constructor & Destructor Documentation

◆ Block()

Member Function Documentation

◆ m()

static direction m ( )
inlinestatic

The number of rows in the block.

Definition at line 153 of file MatrixSpace.H.

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

◆ n()

static direction n ( )
inlinestatic

The number of columns in the block.

Definition at line 159 of file MatrixSpace.H.

References MatrixSpace< Form, Cmpt, Mrows, Ncols >::Block< SubTensor, BRowStart, BColStart >::nCols.

◆ operator=() [1/2]

void operator= ( const MatrixSpace< Form2, Cmpt, SubTensor::mRows, SubTensor::nCols > &  matrix)
inline

Assignment to a matrix.

Definition at line 488 of file MatrixSpaceI.H.

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

Here is the call graph for this function:

◆ operator=() [2/2]

void operator= ( const VectorSpace< VSForm, Cmpt, SubTensor::mRows > &  v)
inline

Assignment to a column vector.

Definition at line 509 of file MatrixSpaceI.H.

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

Here is the call graph for this function:

◆ operator()() [1/3]

SubTensor operator()
inline

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

Definition at line 401 of file MatrixSpaceI.H.

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

Here is the call graph for this function:

◆ operator()() [2/3]

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

(i, j) const element access operator

Definition at line 422 of file MatrixSpaceI.H.

◆ operator()() [3/3]

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

(i, j) element access operator

Definition at line 433 of file MatrixSpaceI.H.

Member Data Documentation

◆ mRows

◆ nCols


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