CwiseNullaryOp< NullaryOp, MatrixType > Class Template Reference

Generic expression of a matrix where all coefficients are defined by a functor. More...

List of all members.

Public Member Functions

const Scalar coeff (int index) const
const Scalar coeff (int rows, int cols) const
int cols () const
 CwiseNullaryOp (int rows, int cols, const NullaryOp &func=NullaryOp())
template<int LoadMode>
PacketScalar packet (int) const
template<int LoadMode>
PacketScalar packet (int, int) const
int rows () const

Protected Attributes

const ei_int_if_dynamic
< ColsAtCompileTime > 
m_cols
const NullaryOp m_functor
const ei_int_if_dynamic
< RowsAtCompileTime > 
m_rows

Detailed Description

template<typename NullaryOp, typename MatrixType>
class Eigen::CwiseNullaryOp< NullaryOp, MatrixType >

Generic expression of a matrix where all coefficients are defined by a functor.

Parameters:
NullaryOp template functor implementing the operator

This class represents an expression of a generic nullary operator. It is the return type of the Ones(), Zero(), Constant(), Identity() and Random() functions, and most of the time this is the only way it is used.

However, if you want to write a function returning such an expression, you will need to use this class.

See also:
class CwiseUnaryOp, class CwiseBinaryOp, MatrixBase::NullaryExpr()

Member Function Documentation

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

Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.

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

Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.


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

Generated on Mon Aug 31 17:48:40 2009 for Eigen by  doxygen 1.6.1