Expression of a triangular matrix extracted from a given matrix. More...
#include <Part.h>
Public Member Functions | |
const MatrixType & | _expression () const |
Scalar | coeff (int row, int col) const |
Scalar & | coeffRef (int row, int col) |
const Block< Part, RowsAtCompileTime, 1 > | col (int i) const |
const Block< Part, RowsAtCompileTime, 1 > | col (int i) |
int | cols () const |
template<typename Other > | |
void | lazyAssign (const Other &other) |
Part & | operator*= (const typename ei_traits< MatrixType >::Scalar &other) |
template<typename Other > | |
Part & | operator+= (const Other &other) |
template<typename Other > | |
Part & | operator-= (const Other &other) |
Part & | operator/= (const typename ei_traits< MatrixType >::Scalar &other) |
template<typename Other > | |
Part & | operator= (const Other &other) |
Part (const MatrixType &matrix) | |
const Block< Part, 1, ColsAtCompileTime > | row (int i) const |
const Block< Part, 1, ColsAtCompileTime > | row (int i) |
int | rows () const |
int | stride () const |
template<typename OtherDerived > | |
void | swap (const MatrixBase< OtherDerived > &other) |
Protected Attributes | |
const MatrixType::Nested | m_matrix |
Private Member Functions | |
Part & | operator= (const Part &) |
Expression of a triangular matrix extracted from a given matrix.
MatrixType | the type of the object in which we are taking the triangular part | |
Mode | the kind of triangular matrix expression to construct. Can be UpperTriangular, StrictlyUpperTriangular, UnitUpperTriangular, LowerTriangular, StrictlyLowerTriangular, UnitLowerTriangular. This is in fact a bit field; it must have either UpperTriangularBit or LowerTriangularBit, and additionnaly it may have either ZeroDiagBit or UnitDiagBit. |
This class represents an expression of the upper or lower triangular part of a square matrix, possibly with a further assumption on the diagonal. It is the return type of MatrixBase::part() and most of the time this is the only way it is used.
Definition at line 57 of file Part.h.
const MatrixType& Part< MatrixType, Mode >::_expression | ( | ) | const [inline] |
Scalar Part< MatrixType, Mode >::coeff | ( | int | row, | |
int | col | |||
) | const [inline] |
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.
Scalar& Part< MatrixType, Mode >::coeffRef | ( | int | row, | |
int | col | |||
) | [inline] |
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.
const Block<Part, RowsAtCompileTime, 1> Part< MatrixType, Mode >::col | ( | int | i | ) | const [inline] |
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.
const Block<Part, RowsAtCompileTime, 1> Part< MatrixType, Mode >::col | ( | int | i | ) | [inline] |
discard any writes to a column
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.
int Part< MatrixType, Mode >::cols | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.
void Part< MatrixType, Mode >::lazyAssign | ( | const Other & | other | ) | [inline] |
Part< MatrixType, Mode > & Part< MatrixType, Mode >::operator*= | ( | const typename ei_traits< MatrixType >::Scalar & | other | ) | [inline] |
Part< MatrixType, Mode > & Part< MatrixType, Mode >::operator+= | ( | const Other & | other | ) | [inline] |
Part< MatrixType, Mode > & Part< MatrixType, Mode >::operator-= | ( | const Other & | other | ) | [inline] |
Part< MatrixType, Mode > & Part< MatrixType, Mode >::operator/= | ( | const typename ei_traits< MatrixType >::Scalar & | other | ) | [inline] |
Part& Part< MatrixType, Mode >::operator= | ( | const Part< MatrixType, Mode > & | ) | [private] |
Part< MatrixType, Mode > & Part< MatrixType, Mode >::operator= | ( | const Other & | other | ) | [inline] |
const Block<Part, 1, ColsAtCompileTime> Part< MatrixType, Mode >::row | ( | int | i | ) | const [inline] |
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.
const Block<Part, 1, ColsAtCompileTime> Part< MatrixType, Mode >::row | ( | int | i | ) | [inline] |
discard any writes to a row
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.
int Part< MatrixType, Mode >::rows | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.
int Part< MatrixType, Mode >::stride | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.
void Part< MatrixType, Mode >::swap | ( | const MatrixBase< OtherDerived > & | other | ) | [inline] |
Reimplemented from MatrixBase< Part< MatrixType, Mode > >.