![]() |
Shapeworks Studio
2.1
Shape analysis software suite
|
Represents a diagonal matrix with its storage. More...
#include <DiagonalMatrix.h>
Public Types | |
typedef internal::traits< DiagonalMatrix >::DiagonalVectorType | DiagonalVectorType |
typedef const DiagonalMatrix & | Nested |
typedef _Scalar | Scalar |
typedef internal::traits< DiagonalMatrix >::StorageKind | StorageKind |
typedef internal::traits< DiagonalMatrix >::Index | Index |
![]() | |
enum | |
typedef internal::traits< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >::DiagonalVectorType | DiagonalVectorType |
typedef DiagonalVectorType::Scalar | Scalar |
typedef DiagonalVectorType::RealScalar | RealScalar |
typedef internal::traits< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >::StorageKind | StorageKind |
typedef internal::traits< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >::Index | Index |
typedef Matrix< Scalar, RowsAtCompileTime, ColsAtCompileTime, 0, MaxRowsAtCompileTime, MaxColsAtCompileTime > | DenseMatrixType |
typedef DenseMatrixType | DenseType |
typedef DiagonalMatrix< Scalar, DiagonalVectorType::SizeAtCompileTime, DiagonalVectorType::MaxSizeAtCompileTime > | PlainObject |
![]() | |
typedef internal::traits< Derived >::StorageKind | StorageKind |
typedef internal::traits< Derived >::Index | Index |
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 | setZero () |
void | setZero (Index size) |
void | setIdentity () |
void | setIdentity (Index size) |
![]() | |
const DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > & | derived () const |
DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > & | derived () |
DenseMatrixType | toDenseMatrix () const |
void | evalTo (MatrixBase< DenseDerived > &other) const |
void | addTo (MatrixBase< DenseDerived > &other) const |
void | subTo (MatrixBase< DenseDerived > &other) const |
const DiagonalVectorType & | diagonal () const |
DiagonalVectorType & | diagonal () |
Index | rows () const |
Index | cols () const |
const DiagonalProduct< MatrixDerived, DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >, OnTheLeft > | operator* (const MatrixBase< MatrixDerived > &matrix) const |
const DiagonalWrapper< const CwiseUnaryOp< internal::scalar_multiple_op< Scalar >, const DiagonalVectorType > > | operator* (const Scalar &scalar) const |
const DiagonalWrapper< const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const DiagonalVectorType > > | inverse () const |
![]() | |
Derived & | derived () |
const Derived & | derived () const |
Derived & | const_cast_derived () const |
const Derived & | const_derived () const |
Index | rows () const |
Index | cols () const |
Index | size () const |
template<typename Dest > | |
void | evalTo (Dest &dst) const |
template<typename Dest > | |
void | addTo (Dest &dst) const |
template<typename Dest > | |
void | subTo (Dest &dst) const |
template<typename Dest > | |
void | applyThisOnTheRight (Dest &dst) const |
template<typename Dest > | |
void | applyThisOnTheLeft (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 135 of file DiagonalMatrix.h.
|
inline |
|
inline |
Constructs a diagonal matrix with given dimension
Definition at line 162 of file DiagonalMatrix.h.
|
inline |
|
inline |
|
inline |
Copy constructor.
Definition at line 172 of file DiagonalMatrix.h.
|
inline |
copy constructor. prevent a default copy constructor from hiding the other templated constructor
Definition at line 176 of file DiagonalMatrix.h.
|
inlineexplicit |
generic constructor from expression of the diagonal coefficients
Definition at line 181 of file DiagonalMatrix.h.
|
inline |
const version of diagonal().
Definition at line 154 of file DiagonalMatrix.h.
|
inline |
Definition at line 156 of file DiagonalMatrix.h.
|
inline |
Copy operator.
Definition at line 186 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 196 of file DiagonalMatrix.h.
|
inline |
|
inline |
Sets this matrix to be the identity matrix of the current size.
Definition at line 210 of file DiagonalMatrix.h.
|
inline |
Sets this matrix to be the identity matrix of the given size.
Definition at line 212 of file DiagonalMatrix.h.
|
inline |
Sets all coefficients to zero.
Definition at line 206 of file DiagonalMatrix.h.
|
inline |