DiagonalCoeffs< MatrixType > Class Template Reference

Expression of the main diagonal of a matrix. More...

List of all members.

Public Member Functions

const Scalar coeff (int index) const
const Scalar coeff (int row, int) const
Scalar & coeffRef (int index)
Scalar & coeffRef (int row, int)
int cols () const
 DiagonalCoeffs (const MatrixType &matrix)
int rows () const

Protected Attributes

const MatrixType::Nested m_matrix

Detailed Description

template<typename MatrixType>
class Eigen::DiagonalCoeffs< MatrixType >

Expression of the main diagonal of a matrix.

Parameters:
MatrixType the type of the object in which we are taking the main diagonal

The matrix is not required to be square.

This class represents an expression of the main diagonal of a square matrix. It is the return type of MatrixBase::diagonal() and most of the time this is the only way it is used.

See also:
MatrixBase::diagonal()

Member Function Documentation

int cols ( void   )  const [inline]
Returns:
the number of columns.
See also:
rows(), ColsAtCompileTime

Reimplemented from MatrixBase< DiagonalCoeffs< MatrixType > >.

int rows ( void   )  const [inline]
Returns:
the number of rows.
See also:
cols(), RowsAtCompileTime

Reimplemented from MatrixBase< DiagonalCoeffs< MatrixType > >.


The documentation for this class was generated from the following file:
Generated on Sun Aug 1 22:06:51 2010 for Eigen by  doxygen 1.6.3