CoeffsVectorType | the type of the vector of diagonal coefficients |
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 |
const Scalar coeff | ( | int | row, | |
int | col | |||
) | const [inline] |
Short version: don't use this function, use operator()(int,int) const instead.
Long version: this function is similar to operator()(int,int) const , but without the assertion. Use this for limiting the performance cost of debugging code when doing repeated coefficient access. Only use this when it is guaranteed that the parameters row and col are in range.
If EIGEN_INTERNAL_DEBUGGING is defined, an assertion will be made, making this function equivalent to operator()(int,int) const .
Reimplemented from MatrixBase.
int cols | ( | void | ) | const [inline] |
const CoeffsVectorType& diagonal | ( | ) | const [inline] |
This is the const version of diagonal().
Reimplemented from MatrixBase.
int rows | ( | void | ) | const [inline] |