Public Types | Public Member Functions | Protected Attributes
CwiseNullaryOp< NullaryOp, PlainObjectType > 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, PlainObjectType >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef
internal::dense_xpr_base
< CwiseNullaryOp >::type 
Base

Public Member Functions

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

Protected Attributes

const
internal::variable_if_dynamic
< Index, ColsAtCompileTime > 
m_cols
const NullaryOp m_functor
const
internal::variable_if_dynamic
< Index, RowsAtCompileTime > 
m_rows

Detailed Description

template<typename NullaryOp, typename PlainObjectType>
class CwiseNullaryOp< NullaryOp, PlainObjectType >

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

Parameters:
NullaryOptemplate functor implementing the operator
PlainObjectTypethe underlying plain matrix/array type

This class represents an expression of a generic nullary operator. It is the return type of the Ones(), Zero(), Constant(), Identity() and Random() methods, 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, DenseBase::NullaryExpr()

Definition at line 62 of file CwiseNullaryOp.h.


Member Typedef Documentation

template<typename NullaryOp, typename PlainObjectType>
typedef internal::dense_xpr_base<CwiseNullaryOp>::type CwiseNullaryOp< NullaryOp, PlainObjectType >::Base

Definition at line 67 of file CwiseNullaryOp.h.


Constructor & Destructor Documentation

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

Definition at line 70 of file CwiseNullaryOp.h.


Member Function Documentation

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

Definition at line 82 of file CwiseNullaryOp.h.

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

Definition at line 93 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename PlainObjectType>
EIGEN_STRONG_INLINE Index CwiseNullaryOp< NullaryOp, PlainObjectType >::cols ( ) const [inline]

Definition at line 80 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename PlainObjectType>
template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar CwiseNullaryOp< NullaryOp, PlainObjectType >::packet ( Index  row,
Index  col 
) const [inline]

Definition at line 88 of file CwiseNullaryOp.h.

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

Definition at line 99 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename PlainObjectType>
EIGEN_STRONG_INLINE Index CwiseNullaryOp< NullaryOp, PlainObjectType >::rows ( ) const [inline]

Definition at line 79 of file CwiseNullaryOp.h.


Member Data Documentation

template<typename NullaryOp, typename PlainObjectType>
const internal::variable_if_dynamic<Index, ColsAtCompileTime> CwiseNullaryOp< NullaryOp, PlainObjectType >::m_cols [protected]

Definition at line 106 of file CwiseNullaryOp.h.

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

Definition at line 107 of file CwiseNullaryOp.h.

template<typename NullaryOp, typename PlainObjectType>
const internal::variable_if_dynamic<Index, RowsAtCompileTime> CwiseNullaryOp< NullaryOp, PlainObjectType >::m_rows [protected]

Definition at line 105 of file CwiseNullaryOp.h.


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


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:57