Base class for diagonal matrices and expressions. More...
Inheritance diagram for Eigen::DiagonalBase< Derived >:Public Types | |
| enum | { RowsAtCompileTime , ColsAtCompileTime , MaxRowsAtCompileTime , MaxColsAtCompileTime , IsVectorAtCompileTime , Flags } |
| typedef Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime, 0, MaxRowsAtCompileTime, MaxColsAtCompileTime > | DenseMatrixType |
| typedef DenseMatrixType | DenseType |
| template<typename OtherDerived > | |
| using | DiagonalDifferenceReturnType = DiagonalWrapper< const CwiseBinaryOp< internal::scalar_difference_op< DiagonalVectorType ::Scalar, typename OtherDerived::DiagonalVectorType ::Scalar >, const DiagonalVectorType, const typename OtherDerived::DiagonalVectorType > > |
| using | DiagonalInverseReturnType = DiagonalWrapper< const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const DiagonalVectorType > > |
| template<typename OtherDerived > | |
| using | DiagonalProductReturnType = DiagonalWrapper< const CwiseBinaryOp< internal::scalar_product_op< DiagonalVectorType ::Scalar, typename OtherDerived::DiagonalVectorType ::Scalar >, const DiagonalVectorType, const typename OtherDerived::DiagonalVectorType > > |
| using | DiagonalScaleReturnType = DiagonalWrapper< const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DiagonalVectorType, Scalar, product)> |
| template<typename OtherDerived > | |
| using | DiagonalSumReturnType = DiagonalWrapper< const CwiseBinaryOp< internal::scalar_sum_op< DiagonalVectorType ::Scalar, typename OtherDerived::DiagonalVectorType ::Scalar >, const DiagonalVectorType, const typename OtherDerived::DiagonalVectorType > > |
| typedef internal::traits< Derived >::DiagonalVectorType | DiagonalVectorType |
| typedef DiagonalMatrix< Scalar, DiagonalVectorType::SizeAtCompileTime, DiagonalVectorType::MaxSizeAtCompileTime > | PlainObject |
| typedef DiagonalVectorType::RealScalar | RealScalar |
| typedef DiagonalVectorType::Scalar | Scalar |
| using | ScaleDiagonalReturnType = DiagonalWrapper< const EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE(Scalar, DiagonalVectorType, product)> |
| typedef internal::traits< Derived >::StorageIndex | StorageIndex |
| typedef internal::traits< Derived >::StorageKind | StorageKind |
Public Types inherited from Eigen::EigenBase< Derived > | |
| typedef Eigen::Index | Index |
| The interface type of indices. More... | |
| typedef internal::traits< Derived >::StorageKind | StorageKind |
Public Member Functions | |
| Scalar | coeff (Index row, Index col) const |
| EIGEN_CONSTEXPR Index | cols () const |
| Derived & | derived () |
| const Derived & | derived () const |
| DiagonalVectorType & | diagonal () |
| const DiagonalVectorType & | diagonal () const |
| const DiagonalInverseReturnType | inverse () const |
| template<typename OtherDerived > | |
| const DiagonalProductReturnType< OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
| template<typename MatrixDerived > | |
| const Product< Derived, MatrixDerived, LazyProduct > | operator* (const MatrixBase< MatrixDerived > &matrix) const |
| const DiagonalScaleReturnType | operator* (const Scalar &scalar) const |
| template<typename OtherDerived > | |
| const DiagonalSumReturnType< OtherDerived > | operator+ (const DiagonalBase< OtherDerived > &other) const |
| template<typename OtherDerived > | |
| const DiagonalDifferenceReturnType< OtherDerived > | operator- (const DiagonalBase< OtherDerived > &other) const |
| EIGEN_CONSTEXPR Index | rows () const |
| DenseMatrixType | toDenseMatrix () const |
Public Member Functions inherited from Eigen::EigenBase< Derived > | |
| template<typename Dest > | |
| void | addTo (Dest &dst) const |
| template<typename Dest > | |
| void | applyThisOnTheLeft (Dest &dst) const |
| template<typename Dest > | |
| void | applyThisOnTheRight (Dest &dst) const |
| EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
| Derived & | const_cast_derived () const |
| const Derived & | const_derived () const |
| Derived & | derived () |
| const Derived & | derived () const |
| template<typename Dest > | |
| void | evalTo (Dest &dst) const |
| EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
| EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
| template<typename Dest > | |
| void | subTo (Dest &dst) const |
Base class for diagonal matrices and expressions.
This is the base class that is inherited by diagonal matrix and related expression types, which internally use a vector for storing the diagonal entries. Diagonal types always represent square matrices.
| Derived | is the derived type, a DiagonalMatrix or DiagonalWrapper. |
Definition at line 32 of file DiagonalMatrix.h.
| typedef Matrix<Scalar, RowsAtCompileTime, ColsAtCompileTime, 0, MaxRowsAtCompileTime, MaxColsAtCompileTime> Eigen::DiagonalBase< Derived >::DenseMatrixType |
Definition at line 50 of file DiagonalMatrix.h.
| typedef DenseMatrixType Eigen::DiagonalBase< Derived >::DenseType |
Definition at line 51 of file DiagonalMatrix.h.
| using Eigen::DiagonalBase< Derived >::DiagonalDifferenceReturnType = DiagonalWrapper<const CwiseBinaryOp< internal::scalar_difference_op < DiagonalVectorType ::Scalar, typename OtherDerived::DiagonalVectorType ::Scalar>, const DiagonalVectorType , const typename OtherDerived::DiagonalVectorType > > |
Definition at line 146 of file DiagonalMatrix.h.
| using Eigen::DiagonalBase< Derived >::DiagonalInverseReturnType = DiagonalWrapper<const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const DiagonalVectorType> > |
Definition at line 109 of file DiagonalMatrix.h.
| using Eigen::DiagonalBase< Derived >::DiagonalProductReturnType = DiagonalWrapper<const CwiseBinaryOp< internal::scalar_product_op < DiagonalVectorType ::Scalar, typename OtherDerived::DiagonalVectorType ::Scalar>, const DiagonalVectorType , const typename OtherDerived::DiagonalVectorType > > |
Definition at line 99 of file DiagonalMatrix.h.
| using Eigen::DiagonalBase< Derived >::DiagonalScaleReturnType = DiagonalWrapper<const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DiagonalVectorType, Scalar, product)> |
Definition at line 116 of file DiagonalMatrix.h.
| using Eigen::DiagonalBase< Derived >::DiagonalSumReturnType = DiagonalWrapper<const CwiseBinaryOp< internal::scalar_sum_op < DiagonalVectorType ::Scalar, typename OtherDerived::DiagonalVectorType ::Scalar>, const DiagonalVectorType , const typename OtherDerived::DiagonalVectorType > > |
Definition at line 135 of file DiagonalMatrix.h.
| typedef internal::traits<Derived>::DiagonalVectorType Eigen::DiagonalBase< Derived >::DiagonalVectorType |
Definition at line 35 of file DiagonalMatrix.h.
| typedef DiagonalMatrix<Scalar,DiagonalVectorType::SizeAtCompileTime,DiagonalVectorType::MaxSizeAtCompileTime> Eigen::DiagonalBase< Derived >::PlainObject |
Definition at line 52 of file DiagonalMatrix.h.
| typedef DiagonalVectorType::RealScalar Eigen::DiagonalBase< Derived >::RealScalar |
Definition at line 37 of file DiagonalMatrix.h.
| typedef DiagonalVectorType::Scalar Eigen::DiagonalBase< Derived >::Scalar |
Definition at line 36 of file DiagonalMatrix.h.
| using Eigen::DiagonalBase< Derived >::ScaleDiagonalReturnType = DiagonalWrapper<const EIGEN_SCALAR_BINARYOP_EXPR_RETURN_TYPE(Scalar, DiagonalVectorType, product)> |
Definition at line 125 of file DiagonalMatrix.h.
| typedef internal::traits<Derived>::StorageIndex Eigen::DiagonalBase< Derived >::StorageIndex |
Definition at line 39 of file DiagonalMatrix.h.
| typedef internal::traits<Derived>::StorageKind Eigen::DiagonalBase< Derived >::StorageKind |
Definition at line 38 of file DiagonalMatrix.h.
| anonymous enum |
| Enumerator | |
|---|---|
| RowsAtCompileTime | |
| ColsAtCompileTime | |
| MaxRowsAtCompileTime | |
| MaxColsAtCompileTime | |
| IsVectorAtCompileTime | |
| Flags | |
Definition at line 41 of file DiagonalMatrix.h.
|
inline |
*this was a dense matrix. Definition at line 77 of file DiagonalMatrix.h.
|
inline |
|
inline |
Definition at line 59 of file DiagonalMatrix.h.
|
inline |
Definition at line 56 of file DiagonalMatrix.h.
|
inline |
Definition at line 73 of file DiagonalMatrix.h.
|
inline |
Definition at line 70 of file DiagonalMatrix.h.
|
inline |
*this. Computed as the coefficient-wise inverse of the diagonal. Definition at line 114 of file DiagonalMatrix.h.
|
inline |
*this by the diagonal matrix other Definition at line 104 of file DiagonalMatrix.h.
|
inline |
*this by the dense matrix, matrix Definition at line 93 of file DiagonalMatrix.h.
|
inline |
*this by the scalar scalar Definition at line 121 of file DiagonalMatrix.h.
|
inline |
*this and the diagonal matrix other Definition at line 140 of file DiagonalMatrix.h.
|
inline |
*this and the diagonal matrix other Definition at line 151 of file DiagonalMatrix.h.
|
inline |
|
inline |
Constructs a dense matrix from *this. Note, this directly returns a dense matrix type, not an expression.
Definition at line 66 of file DiagonalMatrix.h.