![]() |
Eigen
3.4.90 (git rev a4098ac676528a83cfb73d4d26ce1b42ec05f47c)
|
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. |
Inherits DiagonalBase< DiagonalMatrix< Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime > >.
Public Member Functions | |
DiagonalVectorType & | diagonal () |
const DiagonalVectorType & | diagonal () const |
DiagonalMatrix () | |
template<typename OtherDerived > | |
DiagonalMatrix (const DiagonalBase< OtherDerived > &other) | |
template<typename OtherDerived > | |
DiagonalMatrix (const MatrixBase< OtherDerived > &other) | |
template<typename... ArgTypes> | |
DiagonalMatrix (const Scalar &a0, const Scalar &a1, const Scalar &a2, const ArgTypes &... args) | |
Construct a diagonal matrix with fixed size from an arbitrary number of coefficients. [c++11] More... | |
DiagonalMatrix (const Scalar &x, const Scalar &y) | |
DiagonalMatrix (const Scalar &x, const Scalar &y, const Scalar &z) | |
DiagonalMatrix (const std::initializer_list< std::initializer_list< Scalar > > &list) | |
Constructs a DiagonalMatrix and initializes it by elements given by an initializer list of initializer lists [c++11] | |
DiagonalMatrix (Index dim) | |
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) |
|
inline |
Default constructor without initialization
|
inlineexplicit |
Constructs a diagonal matrix with given dimension
|
inline |
2D constructor.
|
inline |
3D constructor.
|
inline |
Construct a diagonal matrix with fixed size from an arbitrary number of coefficients. [c++11]
There exists C++98 anologue constructors for fixed-size diagonal matrices having 2 or 3 coefficients.
*this
.
|
inline |
Copy constructor.
|
inlineexplicit |
generic constructor from expression of the diagonal coefficients
|
inline |
|
inline |
const version of diagonal().
|
inline |
Copy operator.
|
inline |
Resizes to given size.
|
inline |
Sets this matrix to be the identity matrix of the current size.
|
inline |
Sets this matrix to be the identity matrix of the given size.
|
inline |
Sets all coefficients to zero.
|
inline |
Resizes and sets all coefficients to zero.