WPILibC++ 2023.4.3-108-ge5452e3
Eigen::DiagonalWrapper< _DiagonalVectorType > Class Template Reference

Expression of a diagonal matrix. More...

#include </home/runner/work/allwpilib/allwpilib/wpimath/src/main/native/thirdparty/eigen/include/Eigen/src/Core/DiagonalMatrix.h>

Inheritance diagram for Eigen::DiagonalWrapper< _DiagonalVectorType >:
Eigen::DiagonalBase< DiagonalWrapper< _DiagonalVectorType > > Eigen::internal::no_assignment_operator Eigen::EigenBase< DiagonalWrapper< _DiagonalVectorType > >

Public Types

typedef _DiagonalVectorType DiagonalVectorType
 
typedef DiagonalWrapper Nested
 
- Public Types inherited from Eigen::DiagonalBase< DiagonalWrapper< _DiagonalVectorType > >
enum  
 
typedef internal::traits< DiagonalWrapper< _DiagonalVectorType > >::DiagonalVectorType DiagonalVectorType
 
typedef DiagonalVectorType::Scalar Scalar
 
typedef DiagonalVectorType::RealScalar RealScalar
 
typedef internal::traits< DiagonalWrapper< _DiagonalVectorType > >::StorageKind StorageKind
 
typedef internal::traits< DiagonalWrapper< _DiagonalVectorType > >::StorageIndex StorageIndex
 
typedef Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime, 0, MaxRowsAtCompileTime, MaxColsAtCompileTimeDenseMatrixType
 
typedef DenseMatrixType DenseType
 
typedef DiagonalMatrix< Scalar, DiagonalVectorType::SizeAtCompileTime, DiagonalVectorType::MaxSizeAtCompileTime > PlainObject
 
typedef DiagonalWrapper< const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const DiagonalVectorType > > InverseReturnType
 
- Public Types inherited from Eigen::EigenBase< DiagonalWrapper< _DiagonalVectorType > >
typedef Eigen::Index Index
 The interface type of indices. More...
 
typedef internal::traits< DiagonalWrapper< _DiagonalVectorType > >::StorageKind StorageKind
 

Public Member Functions

EIGEN_DEVICE_FUNC DiagonalWrapper (DiagonalVectorType &a_diagonal)
 Constructor from expression of diagonal coefficients to wrap. More...
 
EIGEN_DEVICE_FUNC const DiagonalVectorTypediagonal () const
 
- Public Member Functions inherited from Eigen::DiagonalBase< DiagonalWrapper< _DiagonalVectorType > >
EIGEN_DEVICE_FUNC const DiagonalWrapper< _DiagonalVectorType > & derived () const
 
EIGEN_DEVICE_FUNC DiagonalWrapper< _DiagonalVectorType > & derived ()
 
EIGEN_DEVICE_FUNC DenseMatrixType toDenseMatrix () const
 
EIGEN_DEVICE_FUNC const DiagonalVectorTypediagonal () const
 
EIGEN_DEVICE_FUNC DiagonalVectorTypediagonal ()
 
EIGEN_DEVICE_FUNC Index rows () const
 
EIGEN_DEVICE_FUNC Index cols () const
 
EIGEN_DEVICE_FUNC const Product< DiagonalWrapper< _DiagonalVectorType >, MatrixDerived, LazyProduct > operator* (const MatrixBase< MatrixDerived > &matrix) const
 
EIGEN_DEVICE_FUNC const DiagonalWrapper< const EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(DiagonalVectorType, Scalar, product) > operator* (const Scalar &scalar) const
 
EIGEN_DEVICE_FUNC const InverseReturnType inverse () const
 
EIGEN_DEVICE_FUNC const DiagonalWrapper< const EIGEN_CWISE_BINARY_RETURN_TYPE(DiagonalVectorType, typename OtherDerived::DiagonalVectorType, sum) > operator+ (const DiagonalBase< OtherDerived > &other) const
 
EIGEN_DEVICE_FUNC const DiagonalWrapper< const EIGEN_CWISE_BINARY_RETURN_TYPE(DiagonalVectorType, typename OtherDerived::DiagonalVectorType, difference) > operator- (const DiagonalBase< OtherDerived > &other) const
 
- Public Member Functions inherited from Eigen::EigenBase< DiagonalWrapper< _DiagonalVectorType > >
EIGEN_DEVICE_FUNC DiagonalWrapper< _DiagonalVectorType > & derived ()
 
EIGEN_DEVICE_FUNC const DiagonalWrapper< _DiagonalVectorType > & derived () const
 
EIGEN_DEVICE_FUNC DiagonalWrapper< _DiagonalVectorType > & const_cast_derived () const
 
EIGEN_DEVICE_FUNC const DiagonalWrapper< _DiagonalVectorType > & const_derived () const
 
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows () const EIGEN_NOEXCEPT
 
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols () const EIGEN_NOEXCEPT
 
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index size () const EIGEN_NOEXCEPT
 
EIGEN_DEVICE_FUNC void evalTo (Dest &dst) const
 
EIGEN_DEVICE_FUNC void addTo (Dest &dst) const
 
EIGEN_DEVICE_FUNC void subTo (Dest &dst) const
 
EIGEN_DEVICE_FUNC void applyThisOnTheRight (Dest &dst) const
 
EIGEN_DEVICE_FUNC void applyThisOnTheLeft (Dest &dst) const
 

Protected Attributes

DiagonalVectorType::Nested m_diagonal
 

Detailed Description

template<typename _DiagonalVectorType>
class Eigen::DiagonalWrapper< _DiagonalVectorType >

Expression of a diagonal matrix.

Parameters
_DiagonalVectorTypethe 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()

Member Typedef Documentation

◆ DiagonalVectorType

template<typename _DiagonalVectorType >
typedef _DiagonalVectorType Eigen::DiagonalWrapper< _DiagonalVectorType >::DiagonalVectorType

◆ Nested

template<typename _DiagonalVectorType >
typedef DiagonalWrapper Eigen::DiagonalWrapper< _DiagonalVectorType >::Nested

Constructor & Destructor Documentation

◆ DiagonalWrapper()

template<typename _DiagonalVectorType >
EIGEN_DEVICE_FUNC Eigen::DiagonalWrapper< _DiagonalVectorType >::DiagonalWrapper ( DiagonalVectorType a_diagonal)
inlineexplicit

Constructor from expression of diagonal coefficients to wrap.

Member Function Documentation

◆ diagonal()

template<typename _DiagonalVectorType >
EIGEN_DEVICE_FUNC const DiagonalVectorType & Eigen::DiagonalWrapper< _DiagonalVectorType >::diagonal ( ) const
inline
Returns
a const reference to the wrapped expression of diagonal coefficients.

Member Data Documentation

◆ m_diagonal

template<typename _DiagonalVectorType >
DiagonalVectorType::Nested Eigen::DiagonalWrapper< _DiagonalVectorType >::m_diagonal
protected

The documentation for this class was generated from the following file: