CwiseNullaryOp< NullaryOp, MatrixType > Class Template Reference

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

#include <CwiseNullaryOp.h>

Inheritance diagram for CwiseNullaryOp< NullaryOp, MatrixType >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

EIGEN_STRONG_INLINE const Scalar coeff (int index) const
EIGEN_STRONG_INLINE const Scalar coeff (int rows, int cols) const
EIGEN_STRONG_INLINE int cols () const
 CwiseNullaryOp (int rows, int cols, const NullaryOp &func=NullaryOp())
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar packet (int) const
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar packet (int, int) const
EIGEN_STRONG_INLINE 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 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()

Definition at line 57 of file CwiseNullaryOp.h.


Constructor & Destructor Documentation

template<typename NullaryOp, typename MatrixType>
CwiseNullaryOp< NullaryOp, MatrixType >::CwiseNullaryOp ( int  rows,
int  cols,
const NullaryOp &  func = NullaryOp() 
) [inline]

Definition at line 64 of file CwiseNullaryOp.h.


Member Function Documentation

template<typename NullaryOp, typename MatrixType>
EIGEN_STRONG_INLINE const Scalar CwiseNullaryOp< NullaryOp, MatrixType >::coeff ( int  index  )  const [inline]

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

Definition at line 87 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename MatrixType>
EIGEN_STRONG_INLINE const Scalar CwiseNullaryOp< NullaryOp, MatrixType >::coeff ( int  rows,
int  cols 
) const [inline]

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

Definition at line 76 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename MatrixType>
EIGEN_STRONG_INLINE int CwiseNullaryOp< NullaryOp, MatrixType >::cols (  )  const [inline]
Returns:
the number of columns.
See also:
rows(), ColsAtCompileTime

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

Definition at line 74 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename MatrixType>
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar CwiseNullaryOp< NullaryOp, MatrixType >::packet ( int   )  const [inline]

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

Definition at line 96 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename MatrixType>
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar CwiseNullaryOp< NullaryOp, MatrixType >::packet ( int  ,
int   
) const [inline]

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

Definition at line 82 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename MatrixType>
EIGEN_STRONG_INLINE int CwiseNullaryOp< NullaryOp, MatrixType >::rows (  )  const [inline]
Returns:
the number of rows.
See also:
cols(), RowsAtCompileTime

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

Definition at line 73 of file CwiseNullaryOp.h.


Member Data Documentation

template<typename NullaryOp, typename MatrixType>
const ei_int_if_dynamic<ColsAtCompileTime> CwiseNullaryOp< NullaryOp, MatrixType >::m_cols [protected]

Definition at line 103 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename MatrixType>
const NullaryOp CwiseNullaryOp< NullaryOp, MatrixType >::m_functor [protected]

Definition at line 104 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename MatrixType>
const ei_int_if_dynamic<RowsAtCompileTime> CwiseNullaryOp< NullaryOp, MatrixType >::m_rows [protected]

Definition at line 102 of file CwiseNullaryOp.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:21:59 2013