Go to the documentation of this file.
61 template<
class MatrixType>
62 class ConstMatrixBlock
67 const MatrixType& matrix_;
74 const label rowStart_;
75 const label colStart_;
81 label disallow(
const char *what)
const;
86 typedef typename MatrixType::cmptType
cmptType;
93 const MatrixType& matrix,
104 inline label
m()
const;
107 inline label
n()
const;
123 void checkIndex(
const label i,
const label j)
const;
131 template<
class MatrixType>
144 const label rowStart_;
145 const label colStart_;
151 label disallow(
const char *what)
const;
156 typedef typename MatrixType::cmptType
cmptType;
181 inline label
m()
const;
184 inline label
n()
const;
203 void checkIndex(
const label i,
const label j)
const;
219 template<
class MatrixType2>
223 template<
class MatrixType2>
227 template<
class MSForm, direction Nrows, direction Ncols>
233 template<
class, direction, direction>
class Block,
238 void operator=(
const Block<SubTensor, BRowStart, BColStart>&);
241 template<
class VSForm, direction Ncmpts>
247 template<
class, direction>
class Block,
251 void operator=(
const Block<SubVector, BStart>&);
MatrixBlock(const MatrixBlock &)=default
const cmptType & operator()(const label i, const label j) const
A templated (m x n) matrix of objects of <T>. The layout is (mRows x nCols) - row-major order:
ConstMatrixBlock(const MatrixType &matrix, const label m, const label n, const label mStart, const label nStart)
MatrixType::cmptType cmptType
Generic templated field type.
A templated block of an (m x n) matrix of type <MatrixType>.
void checkIndex(const label i, const label j) const
MatrixType::cmptType cmptType
An ordered pair of two objects of type <T> with first() and second() elements.
void operator=(const Matrix< Form, cmptType > &)
void checkIndex(const label i, const label j) const