Loading...
Searching...
No Matches
MatrixSpace< Form, Cmpt, Mrows, Ncols >::Block< SubTensor, BRowStart, BColStart > Class Template Reference

Sub-block type. More...

#include <MatrixSpace.H>

Public Member Functions

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

Static Public Member Functions

static direction m () noexcept
 The number of rows in the block.
static direction n () noexcept
 The number of columns in the block.

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 150 of file MatrixSpace.H.

Constructor & Destructor Documentation

◆ Block()

template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols>
template<class SubTensor, Foam::direction BRowStart, Foam::direction BColStart>
Block ( msType & matrix)
inline

Construct for the given matrix.

Definition at line 99 of file MatrixSpaceI.H.

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

Member Function Documentation

◆ m()

template<class Form, class Cmpt, direction Mrows, direction Ncols>
template<class SubTensor, direction BRowStart, direction BColStart>
direction m ( )
inlinestaticnoexcept

The number of rows in the block.

Definition at line 165 of file MatrixSpace.H.

References mRows, and Foam::noexcept.

◆ n()

template<class Form, class Cmpt, direction Mrows, direction Ncols>
template<class SubTensor, direction BRowStart, direction BColStart>
direction n ( )
inlinestaticnoexcept

The number of columns in the block.

Definition at line 170 of file MatrixSpace.H.

References nCols, and Foam::noexcept.

◆ operator=() [1/2]

template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols>
template<class SubTensor, Foam::direction BRowStart, Foam::direction BColStart>
template<class Form2>
void operator= ( const MatrixSpace< Form2, Cmpt, SubTensor::mRows, SubTensor::nCols > & matrix)
inline

Assignment to a matrix.

Definition at line 359 of file MatrixSpaceI.H.

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

Here is the call graph for this function:

◆ operator=() [2/2]

template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols>
template<class SubTensor, Foam::direction BRowStart, Foam::direction BColStart>
template<class VSForm>
void operator= ( const VectorSpace< VSForm, Cmpt, SubTensor::mRows > & v)
inline

Assignment to a column vector.

Definition at line 380 of file MatrixSpaceI.H.

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

Here is the call graph for this function:

◆ operator()() [1/3]

template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols>
template<class SubTensor, Foam::direction BRowStart, Foam::direction BColStart>
SubTensor operator() ( ) const
inline

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

Definition at line 272 of file MatrixSpaceI.H.

◆ operator()() [2/3]

template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols>
template<class SubTensor, Foam::direction BRowStart, Foam::direction BColStart>
const Cmpt & operator() ( const direction i,
const direction j ) const
inline

(i, j) const element access operator

Definition at line 293 of file MatrixSpaceI.H.

◆ operator()() [3/3]

template<class Form, class Cmpt, Foam::direction Mrows, Foam::direction Ncols>
template<class SubTensor, Foam::direction BRowStart, Foam::direction BColStart>
Cmpt & operator() ( const direction i,
const direction j )
inline

(i, j) element access operator

Definition at line 304 of file MatrixSpaceI.H.

Member Data Documentation

◆ mRows

template<class Form, class Cmpt, direction Mrows, direction Ncols>
template<class SubTensor, direction BRowStart, direction BColStart>
const direction mRows = SubTensor::mRows
static

Definition at line 159 of file MatrixSpace.H.

Referenced by Block(), m(), and operator=().

◆ nCols

template<class Form, class Cmpt, direction Mrows, direction Ncols>
template<class SubTensor, direction BRowStart, direction BColStart>
const direction nCols = SubTensor::nCols
static

Definition at line 160 of file MatrixSpace.H.

Referenced by Block(), n(), operator=(), and operator=().


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