template<typename DiagonalVectorType_>
class Eigen::DiagonalWrapper< DiagonalVectorType_ >
Expression of a diagonal matrix.
- Template Parameters
-
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.
- See also
- class DiagonalMatrix, class DiagonalBase, MatrixBase::asDiagonal()
Inherits DiagonalBase< DiagonalWrapper< DiagonalVectorType_ > >, and Eigen::internal::no_assignment_operator.
◆ DiagonalWrapper()
template<typename DiagonalVectorType_ >
Constructor from expression of diagonal coefficients to wrap.
◆ diagonal()
template<typename DiagonalVectorType_ >
- Returns
- a const reference to the wrapped expression of diagonal coefficients.
The documentation for this class was generated from the following file: