Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Types | Public Member Functions | Protected Attributes
Eigen::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 Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >:
+ Collaboration diagram for Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >:

Public Types

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

Public Member Functions

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

Detailed Description

template<typename NullaryOp, typename PlainObjectType>
class Eigen::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 49 of file CwiseNullaryOp.h.

Member Function Documentation

template<typename NullaryOp, typename PlainObjectType>
const NullaryOp& Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::functor ( ) const
inline
Returns
the functor representing the nullary operation

Definition at line 92 of file CwiseNullaryOp.h.

92 { return m_functor; }

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