Expression of a diagonal/subdiagonal/superdiagonal in a matrix.
| MatrixType | the type of the object in which we are taking a sub/main/super diagonal |
| DiagIndex | the index of the sub/super diagonal. The default is 0 and it means the main diagonal. A positive value means a superdiagonal, a negative value means a subdiagonal. You can also use Dynamic so the index can be set at runtime. |
The matrix is not required to be square.
This class represents an expression of the main diagonal, or any sub/super diagonal of a square matrix. It is the return type of MatrixBase::diagonal() and MatrixBase::diagonal(Index) and most of the time this is the only way it is used.
Public Types | |
| typedef internal::dense_xpr_base < Diagonal >::type | Base |
Public Member Functions | |
| Diagonal (MatrixType &matrix, Index index=DiagIndex) | |
| Index | rows () const |
| Index | cols () const |
| Index | innerStride () const |
| Index | outerStride () const |
| Scalar & | coeffRef (Index row, Index) |
| const Scalar & | coeffRef (Index row, Index) const |
| CoeffReturnType | coeff (Index row, Index) const |
| Scalar & | coeffRef (Index index) |
| const Scalar & | coeffRef (Index index) const |
| CoeffReturnType | coeff (Index index) const |
| const internal::remove_all < typename MatrixType::Nested > ::type & | nestedExpression () const |
| int | index () const |
Protected Attributes | |
| const MatrixType::Nested | m_matrix |
| const internal::variable_if_dynamic < Index, DiagIndex > | m_index |
Private Member Functions | |
| EIGEN_STRONG_INLINE Index | absDiagIndex () const |
| EIGEN_STRONG_INLINE Index | rowOffset () const |
| EIGEN_STRONG_INLINE Index | colOffset () const |
| template<int LoadMode> | |
| MatrixType::PacketReturnType | packet (Index) const |
| template<int LoadMode> | |
| MatrixType::PacketReturnType | packet (Index, Index) const |
| typedef internal::dense_xpr_base<Diagonal>::type Eigen::Diagonal::Base |
| Eigen::Diagonal::Diagonal | ( | MatrixType & | matrix, |
| Index | index = DiagIndex |
||
| ) | [inline] |
| EIGEN_STRONG_INLINE Index Eigen::Diagonal::absDiagIndex | ( | ) | const [inline, private] |
| CoeffReturnType Eigen::Diagonal::coeff | ( | Index | row, |
| Index | |||
| ) | const [inline] |
| CoeffReturnType Eigen::Diagonal::coeff | ( | Index | index | ) | const [inline] |
| Scalar& Eigen::Diagonal::coeffRef | ( | Index | row, |
| Index | |||
| ) | [inline] |
| const Scalar& Eigen::Diagonal::coeffRef | ( | Index | row, |
| Index | |||
| ) | const [inline] |
| const Scalar& Eigen::Diagonal::coeffRef | ( | Index | index | ) | const [inline] |
| EIGEN_STRONG_INLINE Index Eigen::Diagonal::colOffset | ( | ) | const [inline, private] |
| const internal::remove_all<typename MatrixType::Nested>::type& Eigen::Diagonal::nestedExpression | ( | ) | const [inline] |
| MatrixType::PacketReturnType Eigen::Diagonal::packet | ( | Index | ) | const [private] |
| MatrixType::PacketReturnType Eigen::Diagonal::packet | ( | Index | , |
| Index | |||
| ) | const [private] |
| EIGEN_STRONG_INLINE Index Eigen::Diagonal::rowOffset | ( | ) | const [inline, private] |
const internal::variable_if_dynamic<Index, DiagIndex> Eigen::Diagonal::m_index [protected] |
const MatrixType::Nested Eigen::Diagonal::m_matrix [protected] |
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |