31template<
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")
59template<
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")
89template<
class MatrixType>
96template<
class MatrixType>
103template<
class MatrixType>
110template<
class MatrixType>
117template<
class MatrixType>
124template<
class MatrixType>
133template<
class MatrixType>
134inline const typename MatrixType::cmptType&
145 return matrix_(i + rowStart_, j + colStart_);
149template<
class MatrixType>
150inline const typename MatrixType::cmptType&
161 return matrix_(i + rowStart_, j + colStart_);
165template<
class MatrixType>
166inline typename MatrixType::cmptType&
177 return matrix_(i + rowStart_, j + colStart_);
labelPair sizes() const
Return row/column sizes.
label n() const
Return the number of columns in the block.
label m() const
Return the number of rows in the block.
A templated block of an (m x n) matrix of type <MatrixType>.
labelPair sizes() const
Return row/column sizes.
label n() const
Return the number of columns in the block.
label m() const
Return the number of rows in the block.
friend Ostream & operator(Ostream &, const faMatrix< Type > &)
Pair< label > labelPair
A pair of labels.