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 DiagonalBase< Derived >.
Default constructor without initialization
Constructs a diagonal matrix with given dimension
DiagonalMatrix |
( |
const Scalar & |
x, |
|
|
const Scalar & |
y, |
|
|
const Scalar & |
z |
|
) |
| |
|
inline |
generic constructor from expression of the diagonal coefficients
const DiagonalVectorType& diagonal |
( |
| ) |
const |
|
inline |
DiagonalVectorType& diagonal |
( |
| ) |
|
|
inline |
- Returns
- a reference to the stored vector of diagonal coefficients.
DiagonalMatrix& operator= |
( |
const DiagonalBase< OtherDerived > & |
other | ) |
|
|
inline |
void resize |
( |
Index |
size | ) |
|
|
inline |
Sets this matrix to be the identity matrix of the current size.
void setIdentity |
( |
Index |
size | ) |
|
|
inline |
Sets this matrix to be the identity matrix of the given size.
Sets all coefficients to zero.
void setZero |
( |
Index |
size | ) |
|
|
inline |
Resizes and sets all coefficients to zero.
The documentation for this class was generated from the following file: