Go to the documentation of this file.
31 template<
class MatrixType>
34 const MatrixType& matrix,
42 mRows_(0 < m ? m : disallow(
"row dim")),
43 nCols_(0 <
n ?
n : disallow(
"col dim")),
47 || mStart + mRows_ <= matrix.m()
48 ? mStart : disallow(
"row start")
53 || nStart + nCols_ <= matrix.n()
54 ? nStart : disallow(
"col start")
59 template<
class MatrixType>
70 mRows_(0 < m ? m : disallow(
"row dim")),
71 nCols_(0 <
n ?
n : disallow(
"col dim")),
75 || mStart + mRows_ <= matrix.m()
76 ? mStart : disallow(
"row start")
81 || nStart + nCols_ <= matrix.n()
82 ? nStart : disallow(
"col start")
89 template<
class MatrixType>
96 template<
class MatrixType>
103 template<
class MatrixType>
110 template<
class MatrixType>
117 template<
class MatrixType>
124 template<
class MatrixType>
133 template<
class MatrixType>
134 inline const typename MatrixType::cmptType&
145 return matrix_(i + rowStart_, j + colStart_);
149 template<
class MatrixType>
150 inline const typename MatrixType::cmptType&
161 return matrix_(i + rowStart_, j + colStart_);
165 template<
class MatrixType>
166 inline typename MatrixType::cmptType&
177 return matrix_(i + rowStart_, j + colStart_);
label n() const
Return the number of columns in the block.
labelPair sizes() const
Return row/column sizes.
Pair< label > labelPair
A pair of labels.
ConstMatrixBlock(const MatrixType &matrix, const label m, const label n, const label mStart, const label nStart)
Construct block for matrix, size and location.
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>.
MatrixBlock(MatrixType &matrix, const label m, const label n, const label mStart, const label nStart)
Construct block for matrix, size and location.
label n() const
Return the number of columns in the block.
label m() const
Return the number of rows in the block.
An ordered pair of two objects of type <T> with first() and second() elements.
label m() const
Return the number of rows in the block.
labelPair sizes() const
Return row/column sizes.