Represents a diagonal matrix with its storage. More...
#include <DiagonalMatrix.h>
Public Member Functions | |
EIGEN_DEVICE_FUNC const DiagonalVectorType & | diagonal () const |
EIGEN_DEVICE_FUNC DiagonalVectorType & | diagonal () |
EIGEN_DEVICE_FUNC | DiagonalMatrix () |
EIGEN_DEVICE_FUNC | DiagonalMatrix (Index dim) |
EIGEN_DEVICE_FUNC | DiagonalMatrix (const Scalar &x, const Scalar &y) |
EIGEN_DEVICE_FUNC | DiagonalMatrix (const Scalar &x, const Scalar &y, const Scalar &z) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC | DiagonalMatrix (const DiagonalBase< OtherDerived > &other) |
DiagonalMatrix (const DiagonalMatrix &other) | |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC | DiagonalMatrix (const MatrixBase< OtherDerived > &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC DiagonalMatrix & | operator= (const DiagonalBase< OtherDerived > &other) |
EIGEN_DEVICE_FUNC DiagonalMatrix & | operator= (const DiagonalMatrix &other) |
EIGEN_DEVICE_FUNC void | resize (Index size) |
EIGEN_DEVICE_FUNC void | setIdentity () |
EIGEN_DEVICE_FUNC void | setIdentity (Index size) |
EIGEN_DEVICE_FUNC void | setZero () |
EIGEN_DEVICE_FUNC void | setZero (Index size) |
![]() | |
EIGEN_DEVICE_FUNC Index | cols () const |
EIGEN_DEVICE_FUNC const DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > & | derived () const |
EIGEN_DEVICE_FUNC DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > & | derived () |
EIGEN_DEVICE_FUNC const DiagonalVectorType & | diagonal () const |
EIGEN_DEVICE_FUNC DiagonalVectorType & | diagonal () |
EIGEN_DEVICE_FUNC const InverseReturnType | inverse () const |
EIGEN_DEVICE_FUNC const Product< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >, 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 Index | rows () const |
EIGEN_DEVICE_FUNC DenseMatrixType | toDenseMatrix () const |
![]() | |
template<typename Dest > | |
EIGEN_DEVICE_FUNC void | addTo (Dest &dst) const |
template<typename Dest > | |
EIGEN_DEVICE_FUNC void | applyThisOnTheLeft (Dest &dst) const |
template<typename Dest > | |
EIGEN_DEVICE_FUNC void | applyThisOnTheRight (Dest &dst) const |
EIGEN_DEVICE_FUNC Index | cols () const |
EIGEN_DEVICE_FUNC Derived & | const_cast_derived () const |
EIGEN_DEVICE_FUNC const Derived & | const_derived () const |
EIGEN_DEVICE_FUNC Derived & | derived () |
EIGEN_DEVICE_FUNC const Derived & | derived () const |
template<typename Dest > | |
EIGEN_DEVICE_FUNC void | evalTo (Dest &dst) const |
EIGEN_DEVICE_FUNC Index | rows () const |
EIGEN_DEVICE_FUNC Index | size () const |
template<typename Dest > | |
EIGEN_DEVICE_FUNC void | subTo (Dest &dst) const |
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 116 of file DiagonalMatrix.h.
typedef internal::traits<DiagonalMatrix>::DiagonalVectorType Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::DiagonalVectorType |
Definition at line 121 of file DiagonalMatrix.h.
typedef const DiagonalMatrix& Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::Nested |
Definition at line 122 of file DiagonalMatrix.h.
typedef _Scalar Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::Scalar |
Definition at line 123 of file DiagonalMatrix.h.
typedef internal::traits<DiagonalMatrix>::StorageIndex Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::StorageIndex |
Definition at line 125 of file DiagonalMatrix.h.
typedef internal::traits<DiagonalMatrix>::StorageKind Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::StorageKind |
Definition at line 124 of file DiagonalMatrix.h.
|
inline |
Default constructor without initialization
Definition at line 143 of file DiagonalMatrix.h.
|
inlineexplicit |
Constructs a diagonal matrix with given dimension
Definition at line 147 of file DiagonalMatrix.h.
|
inline |
2D constructor.
Definition at line 151 of file DiagonalMatrix.h.
|
inline |
3D constructor.
Definition at line 155 of file DiagonalMatrix.h.
|
inline |
Copy constructor.
Definition at line 160 of file DiagonalMatrix.h.
|
inline |
copy constructor. prevent a default copy constructor from hiding the other templated constructor
Definition at line 164 of file DiagonalMatrix.h.
|
inlineexplicit |
generic constructor from expression of the diagonal coefficients
Definition at line 170 of file DiagonalMatrix.h.
|
inline |
const version of diagonal().
Definition at line 136 of file DiagonalMatrix.h.
|
inline |
Definition at line 139 of file DiagonalMatrix.h.
|
inline |
Copy operator.
Definition at line 176 of file DiagonalMatrix.h.
|
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 187 of file DiagonalMatrix.h.
|
inline |
Resizes to given size.
Definition at line 196 of file DiagonalMatrix.h.
|
inline |
Sets this matrix to be the identity matrix of the current size.
Definition at line 205 of file DiagonalMatrix.h.
|
inline |
Sets this matrix to be the identity matrix of the given size.
Definition at line 208 of file DiagonalMatrix.h.
|
inline |
Sets all coefficients to zero.
Definition at line 199 of file DiagonalMatrix.h.
|
inline |
Resizes and sets all coefficients to zero.
Definition at line 202 of file DiagonalMatrix.h.
|
protected |
Definition at line 130 of file DiagonalMatrix.h.