Represents a diagonal matrix with its storage. More...
#include <DiagonalMatrix.h>
Public Types | |
typedef internal::traits < DiagonalMatrix > ::DiagonalVectorType | DiagonalVectorType |
typedef internal::traits < DiagonalMatrix >::Index | Index |
typedef const DiagonalMatrix & | Nested |
typedef _Scalar | Scalar |
typedef internal::traits < DiagonalMatrix > ::StorageKind | StorageKind |
Public Member Functions | |
const DiagonalVectorType & | diagonal () const |
DiagonalVectorType & | diagonal () |
DiagonalMatrix () | |
DiagonalMatrix (Index dim) | |
DiagonalMatrix (const Scalar &x, const Scalar &y) | |
DiagonalMatrix (const Scalar &x, const Scalar &y, const Scalar &z) | |
template<typename OtherDerived > | |
DiagonalMatrix (const DiagonalBase< OtherDerived > &other) | |
DiagonalMatrix (const DiagonalMatrix &other) | |
template<typename OtherDerived > | |
DiagonalMatrix (const MatrixBase< OtherDerived > &other) | |
template<typename OtherDerived > | |
DiagonalMatrix & | operator= (const DiagonalBase< OtherDerived > &other) |
DiagonalMatrix & | operator= (const DiagonalMatrix &other) |
void | resize (Index size) |
void | setIdentity () |
void | setIdentity (Index size) |
void | setZero () |
void | setZero (Index size) |
Protected Attributes | |
DiagonalVectorType | m_diagonal |
Represents a diagonal matrix with its storage.
_Scalar | the type of coefficients |
SizeAtCompileTime | the dimension of the matrix, or Dynamic |
MaxSizeAtCompileTime | the 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. |
Definition at line 130 of file DiagonalMatrix.h.
typedef internal::traits<DiagonalMatrix>::DiagonalVectorType Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::DiagonalVectorType |
Reimplemented from Eigen::DiagonalBase< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >.
Definition at line 135 of file DiagonalMatrix.h.
typedef internal::traits<DiagonalMatrix>::Index Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::Index |
Reimplemented from Eigen::DiagonalBase< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >.
Definition at line 139 of file DiagonalMatrix.h.
typedef const DiagonalMatrix& Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::Nested |
Definition at line 136 of file DiagonalMatrix.h.
typedef _Scalar Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::Scalar |
Reimplemented from Eigen::DiagonalBase< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >.
Definition at line 137 of file DiagonalMatrix.h.
typedef internal::traits<DiagonalMatrix>::StorageKind Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::StorageKind |
Reimplemented from Eigen::DiagonalBase< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >.
Definition at line 138 of file DiagonalMatrix.h.
Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::DiagonalMatrix | ( | ) | [inline] |
Default constructor without initialization
Definition at line 154 of file DiagonalMatrix.h.
Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::DiagonalMatrix | ( | Index | dim | ) | [inline] |
Constructs a diagonal matrix with given dimension
Definition at line 157 of file DiagonalMatrix.h.
Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::DiagonalMatrix | ( | const Scalar & | x, |
const Scalar & | y | ||
) | [inline] |
2D constructor.
Definition at line 160 of file DiagonalMatrix.h.
Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::DiagonalMatrix | ( | const Scalar & | x, |
const Scalar & | y, | ||
const Scalar & | z | ||
) | [inline] |
3D constructor.
Definition at line 163 of file DiagonalMatrix.h.
Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::DiagonalMatrix | ( | const DiagonalBase< OtherDerived > & | other | ) | [inline] |
Copy constructor.
Definition at line 167 of file DiagonalMatrix.h.
Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::DiagonalMatrix | ( | const DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > & | other | ) | [inline] |
copy constructor. prevent a default copy constructor from hiding the other templated constructor
Definition at line 171 of file DiagonalMatrix.h.
Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::DiagonalMatrix | ( | const MatrixBase< OtherDerived > & | other | ) | [inline, explicit] |
generic constructor from expression of the diagonal coefficients
Definition at line 176 of file DiagonalMatrix.h.
const DiagonalVectorType& Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::diagonal | ( | ) | const [inline] |
const version of diagonal().
Reimplemented from Eigen::DiagonalBase< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >.
Definition at line 149 of file DiagonalMatrix.h.
DiagonalVectorType& Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::diagonal | ( | ) | [inline] |
Reimplemented from Eigen::DiagonalBase< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >.
Definition at line 151 of file DiagonalMatrix.h.
DiagonalMatrix& Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::operator= | ( | const DiagonalBase< OtherDerived > & | other | ) | [inline] |
Copy operator.
Definition at line 181 of file DiagonalMatrix.h.
DiagonalMatrix& Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::operator= | ( | const DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > & | other | ) | [inline] |
This is a special case of the templated operator=. Its purpose is to prevent a default operator= from hiding the templated operator=.
Definition at line 191 of file DiagonalMatrix.h.
void Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::resize | ( | Index | size | ) | [inline] |
Resizes to given size.
Definition at line 199 of file DiagonalMatrix.h.
void Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::setIdentity | ( | ) | [inline] |
Sets this matrix to be the identity matrix of the current size.
Definition at line 205 of file DiagonalMatrix.h.
void Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::setIdentity | ( | Index | size | ) | [inline] |
Sets this matrix to be the identity matrix of the given size.
Definition at line 207 of file DiagonalMatrix.h.
void Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::setZero | ( | ) | [inline] |
Sets all coefficients to zero.
Definition at line 201 of file DiagonalMatrix.h.
void Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::setZero | ( | Index | size | ) | [inline] |
Resizes and sets all coefficients to zero.
Definition at line 203 of file DiagonalMatrix.h.
DiagonalVectorType Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::m_diagonal [protected] |
Definition at line 144 of file DiagonalMatrix.h.