Eigen  3.2.7
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CwiseNullaryOp< NullaryOp, PlainObjectType > Class Template Reference

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()

Inherits no_assignment_operator, and type< CwiseNullaryOp< NullaryOp, PlainObjectType > >.

Public Member Functions

const NullaryOp & functor () const
 

Member Function Documentation

const NullaryOp& functor ( ) const
inline
Returns
the functor representing the nullary operation

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