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

Public Types | Public Member Functions | Protected Attributes

DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > Class Template Reference

Represents a diagonal matrix with its storage. More...

#include <DiagonalMatrix.h>

Inheritance diagram for DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >:
Inheritance graph
[legend]
Collaboration diagram for DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  
typedef Matrix< Scalar,
RowsAtCompileTime,
ColsAtCompileTime,
0, MaxRowsAtCompileTime,
MaxColsAtCompileTime > 
DenseMatrixType
typedef DenseMatrixType DenseType
typedef internal::traits
< DiagonalMatrix >
::DiagonalVectorType 
DiagonalVectorType
typedef internal::traits
< DiagonalMatrix >::Index 
Index
typedef const DiagonalMatrixNested
typedef DiagonalMatrix< Scalar,
DiagonalVectorType::SizeAtCompileTime,
DiagonalVectorType::MaxSizeAtCompileTime > 
PlainObject
typedef _Scalar Scalar
typedef internal::traits
< DiagonalMatrix >
::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
DiagonalMatrix< _Scalar,
SizeAtCompileTime,
MaxSizeAtCompileTime > & 
const_cast_derived () const
const DiagonalMatrix< _Scalar,
SizeAtCompileTime,
MaxSizeAtCompileTime > & 
const_derived () const
const DiagonalMatrix< _Scalar,
SizeAtCompileTime,
MaxSizeAtCompileTime > & 
derived () const
DiagonalMatrix< _Scalar,
SizeAtCompileTime,
MaxSizeAtCompileTime > & 
derived ()
const DiagonalVectorType & diagonal () const
DiagonalVectorType & diagonal ()
 DiagonalMatrix (Index dim)
 DiagonalMatrix (const DiagonalMatrix &other)
template<typename OtherDerived >
 DiagonalMatrix (const MatrixBase< OtherDerived > &other)
 DiagonalMatrix (const Scalar &x, const Scalar &y)
 DiagonalMatrix ()
 DiagonalMatrix (const Scalar &x, const Scalar &y, const Scalar &z)
template<typename OtherDerived >
 DiagonalMatrix (const DiagonalBase< OtherDerived > &other)
void evalTo (MatrixBase< DenseDerived > &other) const
void evalTo (Dest &dst) const
const DiagonalWrapper
< CwiseUnaryOp
< internal::scalar_inverse_op
< Scalar >, const
DiagonalVectorType > > 
inverse () const
const DiagonalProduct
< MatrixDerived,
DiagonalMatrix< _Scalar,
SizeAtCompileTime,
MaxSizeAtCompileTime >
, OnTheLeft > 
operator* (const MatrixBase< MatrixDerived > &matrix) const
template<typename OtherDerived >
DiagonalMatrixoperator= (const DiagonalBase< OtherDerived > &other)
DiagonalMatrixoperator= (const DiagonalMatrix &other)
void resize (Index size)
Index rows () const
void setIdentity (Index size)
void setIdentity ()
void setZero ()
void setZero (Index size)
Index size () const
void subTo (Dest &dst) const
void subTo (MatrixBase< DenseDerived > &other) const
DenseMatrixType toDenseMatrix () const

Protected Attributes

DiagonalVectorType m_diagonal

Detailed Description

template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
class DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >

Represents a diagonal matrix with its storage.

Parameters:
_Scalarthe type of coefficients
SizeAtCompileTimethe dimension of the matrix, or Dynamic
MaxSizeAtCompileTimethe dimension of the matrix, or Dynamic. This parameter is optional and defaults to SizeAtCompileTime. Most of the time, you do not need to specify it.
See also:
class DiagonalWrapper

Definition at line 131 of file DiagonalMatrix.h.


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

Generated by  Doxygen 1.6.0   Back to index