Generic expression of a coefficient-wise unary operator of a matrix or a vector. More...
Public Member Functions | |
const Scalar | coeff (int row, int col) const |
const Scalar | coeff (int index) const |
int | cols () const |
CwiseUnaryOp (const MatrixType &mat, const UnaryOp &func=UnaryOp()) | |
template<int LoadMode> | |
PacketScalar | packet (int index) const |
template<int LoadMode> | |
PacketScalar | packet (int row, int col) const |
int | rows () const |
Protected Attributes | |
const UnaryOp | m_functor |
const MatrixType::Nested | m_matrix |
Generic expression of a coefficient-wise unary operator of a matrix or a vector.
UnaryOp | template functor implementing the operator | |
MatrixType | the type of the matrix we are applying the unary operator |
This class represents an expression of a generic unary operator of a matrix or a vector. It is the return type of the unary operator-, of a matrix or a vector, and most of the time this is the only way it is used.
int cols | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.
int rows | ( | void | ) | const [inline] |
Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.