Expression of a diagonal matrix. More...
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.
int cols | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< DiagonalMatrix< CoeffsVectorType > >.
int rows | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< DiagonalMatrix< CoeffsVectorType > >.