58 template<
class MatrixType>
59 class ConstMatrixBlock
64 const MatrixType& matrix_;
71 const label rowStart_;
72 const label colStart_;
76 typedef typename MatrixType::cmptType
cmptType;
83 const MatrixType& matrix,
100 inline const cmptType& operator()
115 template<
class MatrixType>
128 const label rowStart_;
129 const label colStart_;
133 typedef typename MatrixType::cmptType
cmptType;
157 inline const cmptType& operator()
167 operator Field<cmptType>()
const;
183 template<
class MatrixType2>
187 template<
class MatrixType2>
191 template<
class MSForm, direction Nrows, direction Ncols>
197 template<
class, direction, direction>
class Block,
202 void operator=(
const Block<SubTensor, BRowStart, BColStart>&);
205 template<
class VSForm, direction Ncmpts>
211 template<
class, direction>
class Block,
215 void operator=(
const Block<SubVector, BStart>&);
218 void operator=(
const Field<cmptType>&);
label m() const
Return the number of rows in the block.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A templated block of an (m x n) matrix of type <MatrixType>.
Pre-declare SubField and related Field type.
const cmptType & operator()(const label i, const label j) const
(i, j) const element access operator
ConstMatrixBlock(const MatrixType &matrix, const label m, const label n, const label mStart, const label nStart)
Construct block for matrix, size and location.
A templated (m x n) matrix of objects of <T>.
label n() const
Return the number of columns in the block.
MatrixType::cmptType cmptType