DiagonalMatrix< CoeffsVectorType > Class Template Reference

Expression of a diagonal matrix. More...

List of all members.

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


Detailed Description

template<typename CoeffsVectorType>
class Eigen::DiagonalMatrix< CoeffsVectorType >

Expression of a diagonal matrix.

Warning:
This is not considered to be part of the stable public API yet. Changes may happen in future releases. See Experimental parts of Eigen
Parameters:
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.

See also:
MatrixBase::diagonal(const OtherDerived&)

Member Function Documentation

int cols ( void   )  const [inline]

Returns:
the number of columns.
See also:
rows(), ColsAtCompileTime

Reimplemented from MatrixBase< DiagonalMatrix< CoeffsVectorType > >.

int rows ( void   )  const [inline]

Returns:
the number of rows.
See also:
cols(), RowsAtCompileTime

Reimplemented from MatrixBase< DiagonalMatrix< CoeffsVectorType > >.


The documentation for this class was generated from the following file:

Generated on Thu Oct 8 14:52:39 2009 for Eigen by  doxygen 1.5.9