Generic expression of a matrix where all coefficients are defined by a functor. More...
Public Member Functions | |
const Scalar | coeff (int rows, int cols) const |
const Scalar | coeff (int index) const |
int | cols () const |
CwiseNullaryOp (int rows, int cols, const NullaryOp &func=NullaryOp()) | |
template<int LoadMode> | |
PacketScalar | packet (int, int) const |
template<int LoadMode> | |
PacketScalar | packet (int) const |
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.
int cols | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.
int rows | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< CwiseNullaryOp< NullaryOp, MatrixType > >.