NullaryOp | template functor implementing the operator |
However, if you want to write a function returning such an expression, you will need to use this class.
Public Member Functions | |
const Scalar | coeff (int index) const |
const Scalar | coeff (int rows, int cols) const |
int | cols () const |
CwiseNullaryOp (int rows, int cols, const NullaryOp &func=NullaryOp()) | |
template<int LoadMode> | |
PacketScalar | packet (int) const |
template<int LoadMode> | |
PacketScalar | packet (int, 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 |
const Scalar coeff | ( | int | index | ) | const [inline] |
Short version: don't use this function, use operator[](int) const instead.
Long version: this function is similar to operator[](int) const , but without the assertion. Use this for limiting the performance cost of debugging code when doing repeated coefficient access. Only use this when it is guaranteed that the parameter index is in range.
If EIGEN_INTERNAL_DEBUGGING is defined, an assertion will be made, making this function equivalent to operator[](int) const .
Reimplemented from MatrixBase.
const Scalar coeff | ( | int | row, | |
int | col | |||
) | const [inline] |
Short version: don't use this function, use operator()(int,int) const instead.
Long version: this function is similar to operator()(int,int) const , but without the assertion. Use this for limiting the performance cost of debugging code when doing repeated coefficient access. Only use this when it is guaranteed that the parameters row and col are in range.
If EIGEN_INTERNAL_DEBUGGING is defined, an assertion will be made, making this function equivalent to operator()(int,int) const .
Reimplemented from MatrixBase.
int cols | ( | void | ) | const [inline] |
PacketScalar packet | ( | int | index | ) | const [inline] |
Reimplemented from MatrixBase.
PacketScalar packet | ( | int | row, | |
int | col | |||
) | const [inline] |
Reimplemented from MatrixBase.
int rows | ( | void | ) | const [inline] |