Generic expression of a matrix where all coefficients are defined by a functor. More...
#include <CwiseNullaryOp.h>
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()) | |
const NullaryOp & | functor () const |
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 |
Generic expression of a matrix where all coefficients are defined by a functor.
NullaryOp | template functor implementing the operator |
PlainObjectType | the 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.
Definition at line 49 of file CwiseNullaryOp.h.
typedef internal::dense_xpr_base<CwiseNullaryOp>::type Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::Base |
Definition at line 54 of file CwiseNullaryOp.h.
Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::CwiseNullaryOp | ( | Index | rows, |
Index | cols, | ||
const NullaryOp & | func = NullaryOp() |
||
) | [inline] |
Definition at line 57 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE const Scalar Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::coeff | ( | Index | rows, |
Index | cols | ||
) | const [inline] |
Definition at line 69 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE const Scalar Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::coeff | ( | Index | index | ) | const [inline] |
Definition at line 80 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE Index Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::cols | ( | ) | const [inline] |
Definition at line 67 of file CwiseNullaryOp.h.
const NullaryOp& Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::functor | ( | ) | const [inline] |
Definition at line 92 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE PacketScalar Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::packet | ( | Index | row, |
Index | col | ||
) | const [inline] |
Definition at line 75 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE PacketScalar Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::packet | ( | Index | index | ) | const [inline] |
Definition at line 86 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE Index Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::rows | ( | ) | const [inline] |
Definition at line 66 of file CwiseNullaryOp.h.
const internal::variable_if_dynamic<Index, ColsAtCompileTime> Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::m_cols [protected] |
Definition at line 96 of file CwiseNullaryOp.h.
const NullaryOp Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::m_functor [protected] |
Definition at line 97 of file CwiseNullaryOp.h.
const internal::variable_if_dynamic<Index, RowsAtCompileTime> Eigen::CwiseNullaryOp< NullaryOp, PlainObjectType >::m_rows [protected] |
Definition at line 95 of file CwiseNullaryOp.h.