![]() |
Eigen
3.4.90 (git rev 5a9f66fb35d03a4da9ef8976e67a61b30aa16dcf)
|
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.
Public Member Functions | |
const DiagonalVectorType & | diagonal () const |
DiagonalWrapper (DiagonalVectorType &a_diagonal) | |
![]() | |
Scalar | coeff (Index row, Index col) const |
EIGEN_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 |
EIGEN_CONSTEXPR Index | rows () const |
DenseMatrixType | toDenseMatrix () const |
![]() | |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
DiagonalWrapper< DiagonalVectorType_ > & | derived () |
const DiagonalWrapper< DiagonalVectorType_ > & | derived () const |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
Additional Inherited Members | |
![]() | |
typedef Eigen::Index | Index |
The interface type of indices. | |
|
inlineexplicit |
Constructor from expression of diagonal coefficients to wrap.
|
inline |