$treeview $search $mathjax
Eigen
3.2.5
$projectbrief
|
$projectbrief
|
$searchbox |
Represents a diagonal matrix with its storage. More...
Inherits DiagonalBase< DiagonalMatrix< _Scalar, SizeAtCompileTime, MaxSizeAtCompileTime > >.
Public Member Functions | |
DiagonalVectorType & | diagonal () |
const DiagonalVectorType & | diagonal () const |
template<typename OtherDerived > | |
DiagonalMatrix (const MatrixBase< OtherDerived > &other) | |
template<typename OtherDerived > | |
DiagonalMatrix (const DiagonalBase< OtherDerived > &other) | |
DiagonalMatrix (const Scalar &x, const Scalar &y, const Scalar &z) | |
DiagonalMatrix (const Scalar &x, const Scalar &y) | |
DiagonalMatrix (Index dim) | |
DiagonalMatrix () | |
template<typename OtherDerived > | |
DiagonalMatrix & | operator= (const DiagonalBase< OtherDerived > &other) |
void | resize (Index size) |
void | setIdentity (Index size) |
void | setIdentity () |
void | setZero (Index size) |
void | setZero () |
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. |
DiagonalMatrix | ( | ) | [inline] |
Default constructor without initialization
DiagonalMatrix | ( | Index | dim | ) | [inline] |
Constructs a diagonal matrix with given dimension
DiagonalMatrix | ( | const Scalar & | x, | |
const Scalar & | y | |||
) | [inline] |
2D constructor.
DiagonalMatrix | ( | const Scalar & | x, | |
const Scalar & | y, | |||
const Scalar & | z | |||
) | [inline] |
3D constructor.
DiagonalMatrix | ( | const DiagonalBase< OtherDerived > & | other | ) | [inline] |
Copy constructor.
DiagonalMatrix | ( | const MatrixBase< OtherDerived > & | other | ) | [inline, explicit] |
generic constructor from expression of the diagonal coefficients
DiagonalVectorType& diagonal | ( | ) | [inline] |
const DiagonalVectorType& diagonal | ( | ) | const [inline] |
const version of diagonal().
DiagonalMatrix& operator= | ( | const DiagonalBase< OtherDerived > & | other | ) | [inline] |
Copy operator.
void resize | ( | Index | size | ) | [inline] |
Resizes to given size.
void setIdentity | ( | Index | size | ) | [inline] |
Sets this matrix to be the identity matrix of the given size.
void setIdentity | ( | ) | [inline] |
Sets this matrix to be the identity matrix of the current size.
void setZero | ( | Index | size | ) | [inline] |
Resizes and sets all coefficients to zero.
void setZero | ( | ) | [inline] |
Sets all coefficients to zero.