Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes
Eigen::CwiseNullaryOp Class Reference

Detailed Description

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()
Inheritance diagram for Eigen::CwiseNullaryOp:
Inheritance graph
[legend]

List of all members.

Public Types

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

Public Member Functions

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

Protected Attributes

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

Member Typedef Documentation

Definition at line 68 of file Core.


Constructor & Destructor Documentation

Eigen::CwiseNullaryOp::CwiseNullaryOp ( Index  rows,
Index  cols,
const NullaryOp &  func = NullaryOp() 
) [inline]

Definition at line 71 of file Core.


Member Function Documentation

EIGEN_STRONG_INLINE const Scalar Eigen::CwiseNullaryOp::coeff ( Index  rows,
Index  cols 
) const [inline]

Definition at line 83 of file Core.

EIGEN_STRONG_INLINE const Scalar Eigen::CwiseNullaryOp::coeff ( Index  index) const [inline]

Definition at line 94 of file Core.

EIGEN_STRONG_INLINE Index Eigen::CwiseNullaryOp::cols ( void  ) const [inline]

Definition at line 81 of file Core.

const NullaryOp& Eigen::CwiseNullaryOp::functor ( ) const [inline]
Returns:
the functor representing the nullary operation

Definition at line 106 of file Core.

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

Definition at line 89 of file Core.

template<int LoadMode>
EIGEN_STRONG_INLINE PacketScalar Eigen::CwiseNullaryOp::packet ( Index  index) const [inline]

Definition at line 100 of file Core.

EIGEN_STRONG_INLINE Index Eigen::CwiseNullaryOp::rows ( void  ) const [inline]

Definition at line 80 of file Core.


Member Data Documentation

const internal::variable_if_dynamic<Index, ColsAtCompileTime> Eigen::CwiseNullaryOp::m_cols [protected]

Definition at line 110 of file Core.

const NullaryOp Eigen::CwiseNullaryOp::m_functor [protected]

Definition at line 111 of file Core.

const internal::variable_if_dynamic<Index, RowsAtCompileTime> Eigen::CwiseNullaryOp::m_rows [protected]

Definition at line 109 of file Core.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011