Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

Public Types | Public Member Functions | Protected Attributes

DiagonalWrapper< _DiagonalVectorType > Class Template Reference

Expression of a diagonal matrix. More...

#include <DiagonalMatrix.h>

Inheritance diagram for DiagonalWrapper< _DiagonalVectorType >:
Inheritance graph
[legend]
Collaboration diagram for DiagonalWrapper< _DiagonalVectorType >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  
typedef Matrix< Scalar,
RowsAtCompileTime,
ColsAtCompileTime,
0, MaxRowsAtCompileTime,
MaxColsAtCompileTime > 
DenseMatrixType
typedef DenseMatrixType DenseType
typedef _DiagonalVectorType DiagonalVectorType
typedef internal::traits
< DiagonalWrapper
< _DiagonalVectorType >
>::Index 
Index
typedef DiagonalWrapper Nested
typedef DiagonalMatrix< Scalar,
DiagonalVectorType::SizeAtCompileTime,
DiagonalVectorType::MaxSizeAtCompileTime > 
PlainObject
typedef DiagonalVectorType::Scalar Scalar
typedef internal::traits
< DiagonalWrapper
< _DiagonalVectorType >
>::StorageKind 
StorageKind

Public Member Functions

void addTo (MatrixBase< DenseDerived > &other) const
void addTo (Dest &dst) const
void applyThisOnTheLeft (Dest &dst) const
void applyThisOnTheRight (Dest &dst) const
Index cols () const
DiagonalWrapper
< _DiagonalVectorType > & 
const_cast_derived () const
const DiagonalWrapper
< _DiagonalVectorType > & 
const_derived () const
const DiagonalWrapper
< _DiagonalVectorType > & 
derived () const
DiagonalWrapper
< _DiagonalVectorType > & 
derived ()
DiagonalVectorType & diagonal ()
const DiagonalVectorType & diagonal () const
 DiagonalWrapper (const DiagonalVectorType &diagonal)
void evalTo (Dest &dst) const
void evalTo (MatrixBase< DenseDerived > &other) const
const DiagonalWrapper
< CwiseUnaryOp
< internal::scalar_inverse_op
< Scalar >, const
DiagonalVectorType > > 
inverse () const
const DiagonalProduct
< MatrixDerived,
DiagonalWrapper
< _DiagonalVectorType >
, OnTheLeft > 
operator* (const MatrixBase< MatrixDerived > &matrix) const
Index rows () const
Index size () const
void subTo (Dest &dst) const
void subTo (MatrixBase< DenseDerived > &other) const
DenseMatrixType toDenseMatrix () const

Protected Attributes

const DiagonalVectorType::Nested m_diagonal

Detailed Description

template<typename _DiagonalVectorType>
class 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()

Definition at line 244 of file DiagonalMatrix.h.


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

Generated by  Doxygen 1.6.0   Back to index