Expression of a diagonal matrix. More...
#include <DiagonalMatrix.h>
Public Types | |
typedef CoeffsVectorType | _CoeffsVectorType |
Public Member Functions | |
const Scalar | coeff (int row, int col) const |
int | cols () const |
const CoeffsVectorType & | diagonal () const |
DiagonalMatrix (const CoeffsVectorType &coeffs) | |
template<typename OtherCoeffsVectorType > | |
DiagonalMatrix (const DiagonalMatrix< OtherCoeffsVectorType > &other) | |
int | rows () const |
Protected Attributes | |
const CoeffsVectorType::Nested | m_coeffs |
Expression of a diagonal matrix.
CoeffsVectorType | the type of the vector of diagonal coefficients |
This class is an expression of a diagonal matrix with given vector of diagonal coefficients. It is the return type of MatrixBase::diagonal(const OtherDerived&) and most of the time this is the only way it is used.
Definition at line 59 of file DiagonalMatrix.h.
typedef CoeffsVectorType DiagonalMatrix< CoeffsVectorType >::_CoeffsVectorType |
Definition at line 65 of file DiagonalMatrix.h.
DiagonalMatrix< CoeffsVectorType >::DiagonalMatrix | ( | const DiagonalMatrix< OtherCoeffsVectorType > & | other | ) | [inline] |
Definition at line 69 of file DiagonalMatrix.h.
DiagonalMatrix< CoeffsVectorType >::DiagonalMatrix | ( | const CoeffsVectorType & | coeffs | ) | [inline] |
Definition at line 76 of file DiagonalMatrix.h.
const Scalar DiagonalMatrix< CoeffsVectorType >::coeff | ( | int | row, | |
int | col | |||
) | const [inline] |
Reimplemented from MatrixBase< DiagonalMatrix< CoeffsVectorType > >.
Definition at line 85 of file DiagonalMatrix.h.
int DiagonalMatrix< CoeffsVectorType >::cols | ( | ) | const [inline] |
Reimplemented from MatrixBase< DiagonalMatrix< CoeffsVectorType > >.
Definition at line 83 of file DiagonalMatrix.h.
const CoeffsVectorType& DiagonalMatrix< CoeffsVectorType >::diagonal | ( | ) | const [inline] |
Reimplemented from MatrixBase< DiagonalMatrix< CoeffsVectorType > >.
Definition at line 90 of file DiagonalMatrix.h.
int DiagonalMatrix< CoeffsVectorType >::rows | ( | ) | const [inline] |
Reimplemented from MatrixBase< DiagonalMatrix< CoeffsVectorType > >.
Definition at line 82 of file DiagonalMatrix.h.
const CoeffsVectorType::Nested DiagonalMatrix< CoeffsVectorType >::m_coeffs [protected] |
Definition at line 93 of file DiagonalMatrix.h.