Generic expression of a matrix where all coefficients are defined by a functor. More...
#include <CwiseNullaryOp.h>
Public Member Functions | |
EIGEN_STRONG_INLINE const Scalar | coeff (int index) const |
EIGEN_STRONG_INLINE const Scalar | coeff (int rows, int cols) const |
EIGEN_STRONG_INLINE int | cols () const |
CwiseNullaryOp (int rows, int cols, const NullaryOp &func=NullaryOp()) | |
template<int LoadMode> | |
EIGEN_STRONG_INLINE PacketScalar | packet (int) const |
template<int LoadMode> | |
EIGEN_STRONG_INLINE PacketScalar | packet (int, int) const |
EIGEN_STRONG_INLINE int | rows () const |
Protected Attributes | |
const ei_int_if_dynamic < ColsAtCompileTime > | m_cols |
const NullaryOp | m_functor |
const ei_int_if_dynamic < RowsAtCompileTime > | m_rows |
Generic expression of a matrix where all coefficients are defined by a functor.
NullaryOp | template functor implementing the operator |
This class represents an expression of a generic nullary operator. It is the return type of the Ones(), Zero(), Constant(), Identity() and Random() functions, 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 57 of file CwiseNullaryOp.h.
CwiseNullaryOp< NullaryOp, MatrixType >::CwiseNullaryOp | ( | int | rows, | |
int | cols, | |||
const NullaryOp & | func = NullaryOp() | |||
) | [inline] |
Definition at line 64 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE const Scalar CwiseNullaryOp< NullaryOp, MatrixType >::coeff | ( | int | index | ) | const [inline] |
Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.
Definition at line 87 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE const Scalar CwiseNullaryOp< NullaryOp, MatrixType >::coeff | ( | int | rows, | |
int | cols | |||
) | const [inline] |
Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.
Definition at line 76 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE int CwiseNullaryOp< NullaryOp, MatrixType >::cols | ( | ) | const [inline] |
Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.
Definition at line 74 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE PacketScalar CwiseNullaryOp< NullaryOp, MatrixType >::packet | ( | int | ) | const [inline] |
Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.
Definition at line 96 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE PacketScalar CwiseNullaryOp< NullaryOp, MatrixType >::packet | ( | int | , | |
int | ||||
) | const [inline] |
Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.
Definition at line 82 of file CwiseNullaryOp.h.
EIGEN_STRONG_INLINE int CwiseNullaryOp< NullaryOp, MatrixType >::rows | ( | ) | const [inline] |
Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.
Definition at line 73 of file CwiseNullaryOp.h.
const ei_int_if_dynamic<ColsAtCompileTime> CwiseNullaryOp< NullaryOp, MatrixType >::m_cols [protected] |
Definition at line 103 of file CwiseNullaryOp.h.
const NullaryOp CwiseNullaryOp< NullaryOp, MatrixType >::m_functor [protected] |
Definition at line 104 of file CwiseNullaryOp.h.
const ei_int_if_dynamic<RowsAtCompileTime> CwiseNullaryOp< NullaryOp, MatrixType >::m_rows [protected] |
Definition at line 102 of file CwiseNullaryOp.h.