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