template<typename Scalar_, int SizeAtCompileTime, int MaxSizeAtCompileTime>
class Eigen::DiagonalMatrix< Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime >
Represents a diagonal matrix with its storage.
- Template 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 DiagonalBase, class DiagonalWrapper
|
| 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.
|
| |
| | 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 (DiagonalVectorType &&diag) |
| | Constructs a DiagonalMatrix from an r-value diagonal vector type.
|
| |
| | 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) |
| |
| Scalar | coeff (Index row, Index col) const |
| |
| constexpr Index | cols () const |
| |
| DiagonalMatrix< Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime > & | derived () |
| |
| const DiagonalMatrix< Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime > & | derived () const |
| |
| DiagonalVectorType & | diagonal () |
| |
| const DiagonalVectorType & | diagonal () const |
| |
| const DiagonalInverseReturnType | inverse () const |
| |
| const DiagonalProductReturnType< OtherDerived > | operator* (const DiagonalBase< OtherDerived > &other) const |
| |
| const Product< DiagonalMatrix< Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime >, MatrixDerived, LazyProduct > | operator* (const MatrixBase< MatrixDerived > &matrix) const |
| |
| const DiagonalScaleReturnType | operator* (const Scalar &scalar) const |
| |
| const DiagonalSumReturnType< OtherDerived > | operator+ (const DiagonalBase< OtherDerived > &other) const |
| |
| const DiagonalDifferenceReturnType< OtherDerived > | operator- (const DiagonalBase< OtherDerived > &other) const |
| |
| constexpr Index | rows () const |
| |
| DenseMatrixType | toDenseMatrix () const |
| |
| constexpr Index | cols () const noexcept |
| |
| constexpr DiagonalMatrix< Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime > & | derived () |
| |
| constexpr const DiagonalMatrix< Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime > & | derived () const |
| |
| constexpr Index | rows () const noexcept |
| |
| constexpr Index | size () const noexcept |
| |