Represents a diagonal matrix with its storage. More...
#include <DiagonalMatrix.h>
Inheritance diagram for DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >: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) | |
| template<typename OtherDerived > | |
| DiagonalMatrix (const MatrixBase< OtherDerived > &other) | |
| template<typename OtherDerived > | |
| DiagonalMatrix & | operator= (const DiagonalBase< OtherDerived > &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. |
|
inline |
Default constructor without initialization
|
inline |
Constructs a diagonal matrix with given dimension
|
inline |
2D constructor.
|
inline |
3D constructor.
|
inline |
Copy constructor.
|
inlineexplicit |
generic constructor from expression of the diagonal coefficients
|
inline |
const version of diagonal().
References DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::m_diagonal.
|
inline |
References DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::m_diagonal.
|
inline |
Copy operator.
References DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::m_diagonal.
|
inline |
Resizes to given size.
References DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::m_diagonal.
|
inline |
Sets this matrix to be the identity matrix of the current size.
References DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::m_diagonal.
|
inline |
Sets this matrix to be the identity matrix of the given size.
References DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::m_diagonal.
|
inline |
Sets all coefficients to zero.
References DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::m_diagonal.
|
inline |
Resizes and sets all coefficients to zero.
References DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::m_diagonal.
|
protected |
Referenced by DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::diagonal(), DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::operator=(), DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::resize(), DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::setIdentity(), and DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::setZero().
1.8.1.1