#include <Eigen/src/Core/DiagonalMatrix.h>
template<typename Derived>
class Eigen::DiagonalBase< Derived >
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.
- Template Parameters
-
- See also
- class DiagonalMatrix, class DiagonalWrapper
|
| Scalar | coeff (Index row, Index col) const |
| 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 |
| constexpr Index | rows () const |
| DenseMatrixType | toDenseMatrix () const |
| constexpr Index | cols () const noexcept |
| constexpr Derived & | derived () |
| constexpr const Derived & | derived () const |
| constexpr Index | rows () const noexcept |
| constexpr Index | size () const noexcept |
◆ coeff()
template<typename Derived>
- Returns
- the value of the coefficient as if
*this was a dense matrix.
◆ cols()
template<typename Derived>
- Returns
- the number of columns.
◆ derived() [1/2]
template<typename Derived>
- Returns
- a const reference to the derived object.
◆ derived() [2/2]
template<typename Derived>
- Returns
- a reference to the derived object.
◆ diagonal() [1/2]
template<typename Derived>
- Returns
- a const reference to the derived object's vector of diagonal coefficients.
◆ diagonal() [2/2]
template<typename Derived>
- Returns
- a reference to the derived object's vector of diagonal coefficients.
◆ inverse()
template<typename Derived>
- Returns
- the inverse
*this. Computed as the coefficient-wise inverse of the diagonal.
◆ operator*() [1/3]
template<typename Derived>
template<typename OtherDerived>
- Returns
- the diagonal matrix product of
*this by the diagonal matrix other
◆ operator*() [2/3]
template<typename Derived>
template<typename MatrixDerived>
- Returns
- the diagonal matrix product of
*this by the dense matrix, matrix
◆ operator*() [3/3]
template<typename Derived>
| const DiagonalScaleReturnType Eigen::DiagonalBase< Derived >::operator* |
( |
const Scalar & | scalar | ) |
const |
|
inline |
- Returns
- the product of
*this by the scalar scalar
◆ operator+()
template<typename Derived>
template<typename OtherDerived>
- Returns
- the sum of
*this and the diagonal matrix other
◆ operator-()
template<typename Derived>
template<typename OtherDerived>
- Returns
- the difference of
*this and the diagonal matrix other
◆ rows()
template<typename Derived>
- Returns
- the number of rows.
◆ toDenseMatrix()
template<typename Derived>
Constructs a dense matrix from *this. Note, this directly returns a dense matrix type, not an expression.
- Returns
- A dense matrix, with its diagonal entries set from the the derived object.
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/eigen3-5.0.1-build/eigen-5.0.1/Eigen/src/Core/DiagonalMatrix.h