Expression of a diagonal/subdiagonal/superdiagonal in a matrix. More...
#include <Diagonal.h>
Public Types | |
enum | { DiagIndex = _DiagIndex } |
typedef internal::dense_xpr_base< Diagonal >::type | Base |
typedef internal::conditional< internal::is_lvalue< MatrixType >::value, Scalar, const Scalar >::type | ScalarWithConstIfNotLvalue |
Public Member Functions | |
EIGEN_DEVICE_FUNC CoeffReturnType | coeff (Index idx) const |
EIGEN_DEVICE_FUNC CoeffReturnType | coeff (Index row, Index) const |
EIGEN_DEVICE_FUNC Scalar & | coeffRef (Index idx) |
const EIGEN_DEVICE_FUNC Scalar & | coeffRef (Index idx) const |
EIGEN_DEVICE_FUNC Scalar & | coeffRef (Index row, Index) |
const EIGEN_DEVICE_FUNC Scalar & | coeffRef (Index row, Index) const |
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
EIGEN_DEVICE_FUNC ScalarWithConstIfNotLvalue * | data () |
const EIGEN_DEVICE_FUNC Scalar * | data () const |
EIGEN_DEVICE_FUNC | Diagonal (MatrixType &matrix, Index a_index=DiagIndex) |
EIGEN_DEVICE_FUNC Index | index () const |
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | innerStride () const EIGEN_NOEXCEPT |
const EIGEN_DEVICE_FUNC internal::remove_all< typename MatrixType::Nested >::type & | nestedExpression () const |
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | outerStride () const EIGEN_NOEXCEPT |
EIGEN_DEVICE_FUNC Index | rows () const |
Protected Attributes | |
const internal::variable_if_dynamicindex< Index, DiagIndex > | m_index |
internal::ref_selector< MatrixType >::non_const_type | m_matrix |
Private Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index | absDiagIndex () const EIGEN_NOEXCEPT |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index | colOffset () const EIGEN_NOEXCEPT |
template<int LoadMode> | |
MatrixType::PacketReturnType | packet (Index) const |
template<int LoadMode> | |
MatrixType::PacketReturnType | packet (Index, Index) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index | rowOffset () const EIGEN_NOEXCEPT |
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 DynamicIndex 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.
Definition at line 63 of file Diagonal.h.
typedef internal::dense_xpr_base<Diagonal>::type Eigen::Diagonal< MatrixType, _DiagIndex >::Base |
Definition at line 69 of file Diagonal.h.
typedef internal::conditional< internal::is_lvalue<MatrixType>::value, Scalar, const Scalar >::type Eigen::Diagonal< MatrixType, _DiagIndex >::ScalarWithConstIfNotLvalue |
Definition at line 102 of file Diagonal.h.
anonymous enum |
Enumerator | |
---|---|
DiagIndex |
Definition at line 68 of file Diagonal.h.
|
inlineexplicit |
Definition at line 73 of file Diagonal.h.
|
inlineprivate |
Definition at line 167 of file Diagonal.h.
|
inline |
Definition at line 142 of file Diagonal.h.
|
inline |
Definition at line 123 of file Diagonal.h.
|
inline |
Definition at line 129 of file Diagonal.h.
|
inline |
Definition at line 136 of file Diagonal.h.
|
inline |
Definition at line 110 of file Diagonal.h.
|
inline |
Definition at line 117 of file Diagonal.h.
|
inlineprivate |
Definition at line 171 of file Diagonal.h.
|
inline |
Definition at line 88 of file Diagonal.h.
|
inline |
Definition at line 105 of file Diagonal.h.
|
inline |
Definition at line 107 of file Diagonal.h.
|
inline |
Definition at line 155 of file Diagonal.h.
|
inline |
Definition at line 91 of file Diagonal.h.
|
inline |
Definition at line 149 of file Diagonal.h.
|
inline |
Definition at line 96 of file Diagonal.h.
|
private |
|
private |
|
inlineprivate |
Definition at line 169 of file Diagonal.h.
|
inline |
Definition at line 81 of file Diagonal.h.
|
protected |
Definition at line 162 of file Diagonal.h.
|
protected |
Definition at line 161 of file Diagonal.h.