![]() |
Eigen
5.0.1-dev+60122df6
|
#include <Eigen/src/Core/DiagonalMatrix.h>
Expression of a diagonal matrix.
| DiagonalVectorType_ | the type of the vector of diagonal coefficients |
This class is an expression of a diagonal matrix, but not storing its own vector of diagonal coefficients, instead wrapping an existing vector expression. It is the return type of MatrixBase::asDiagonal() and most of the time this is the only way that it is used.
Inheritance diagram for Eigen::DiagonalWrapper< DiagonalVectorType_ >:Public Member Functions | |
| const DiagonalVectorType & | diagonal () const |
| DiagonalWrapper (DiagonalVectorType &a_diagonal) | |
Public Member Functions inherited from Eigen::DiagonalBase< DiagonalWrapper< DiagonalVectorType_ > > | |
| Scalar | coeff (Index row, Index col) const |
| constexpr Index | cols () const |
| DiagonalWrapper< DiagonalVectorType_ > & | derived () |
| const DiagonalWrapper< DiagonalVectorType_ > & | derived () const |
| DiagonalVectorType & | diagonal () |
| const DiagonalVectorType & | diagonal () const |
| const DiagonalInverseReturnType | inverse () const |
| const DiagonalProductReturnType< OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
| const Product< DiagonalWrapper< DiagonalVectorType_ >, MatrixDerived, LazyProduct > | operator* (const MatrixBase< MatrixDerived > &matrix) const |
| const DiagonalScaleReturnType | operator* (const Scalar &scalar) const |
| const DiagonalSumReturnType< OtherDerived > | operator+ (const DiagonalBase< OtherDerived > &other) const |
| const DiagonalDifferenceReturnType< OtherDerived > | operator- (const DiagonalBase< OtherDerived > &other) const |
| constexpr Index | rows () const |
| DenseMatrixType | toDenseMatrix () const |
Public Member Functions inherited from Eigen::EigenBase< DiagonalWrapper< DiagonalVectorType_ > > | |
| constexpr Index | cols () const noexcept |
| constexpr DiagonalWrapper< DiagonalVectorType_ > & | derived () |
| constexpr const DiagonalWrapper< DiagonalVectorType_ > & | derived () const |
| constexpr Index | rows () const noexcept |
| constexpr Index | size () const noexcept |
Additional Inherited Members | |
Public Types inherited from Eigen::EigenBase< DiagonalWrapper< DiagonalVectorType_ > > | |
| typedef Eigen::Index | Index |
| The interface type of indices. | |
|
inlineexplicit |
Constructor from expression of diagonal coefficients to wrap.
|
inline |