template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
class Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >
Represents a diagonal matrix with its storage.
- Parameters
-
_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. |
- See also
- class DiagonalWrapper
Inherits Eigen::DiagonalBase< Derived >.
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
Default constructor without initialization
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
Constructs a diagonal matrix with given dimension
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
template<typename OtherDerived >
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
template<typename OtherDerived >
generic constructor from expression of the diagonal coefficients
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
const DiagonalVectorType& Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::diagonal |
( |
| ) |
const |
|
inline |
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
DiagonalVectorType& Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::diagonal |
( |
| ) |
|
|
inline |
- Returns
- a reference to the stored vector of diagonal coefficients.
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
template<typename OtherDerived >
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
Sets this matrix to be the identity matrix of the current size.
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
void Eigen::DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime >::setIdentity |
( |
Index |
size | ) |
|
|
inline |
Sets this matrix to be the identity matrix of the given size.
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
Sets all coefficients to zero.
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime>
Resizes and sets all coefficients to zero.
The documentation for this class was generated from the following file: