Generic expression of a coefficient-wise unary operator of a matrix or a vector. More...
#include <CwiseUnaryOp.h>
Public Member Functions | |
EIGEN_STRONG_INLINE const Scalar | coeff (int index) const |
EIGEN_STRONG_INLINE const Scalar | coeff (int row, int col) const |
EIGEN_STRONG_INLINE int | cols () const |
CwiseUnaryOp (const MatrixType &mat, const UnaryOp &func=UnaryOp()) | |
template<int LoadMode> | |
EIGEN_STRONG_INLINE PacketScalar | packet (int index) const |
template<int LoadMode> | |
EIGEN_STRONG_INLINE PacketScalar | packet (int row, int col) const |
EIGEN_STRONG_INLINE 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.
Definition at line 60 of file CwiseUnaryOp.h.
CwiseUnaryOp< UnaryOp, MatrixType >::CwiseUnaryOp | ( | const MatrixType & | mat, | |
const UnaryOp & | func = UnaryOp() | |||
) | [inline] |
Definition at line 67 of file CwiseUnaryOp.h.
EIGEN_STRONG_INLINE const Scalar CwiseUnaryOp< UnaryOp, MatrixType >::coeff | ( | int | index | ) | const [inline] |
Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.
Definition at line 84 of file CwiseUnaryOp.h.
EIGEN_STRONG_INLINE const Scalar CwiseUnaryOp< UnaryOp, MatrixType >::coeff | ( | int | row, | |
int | col | |||
) | const [inline] |
Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.
Definition at line 73 of file CwiseUnaryOp.h.
EIGEN_STRONG_INLINE int CwiseUnaryOp< UnaryOp, MatrixType >::cols | ( | ) | const [inline] |
Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.
Definition at line 71 of file CwiseUnaryOp.h.
EIGEN_STRONG_INLINE PacketScalar CwiseUnaryOp< UnaryOp, MatrixType >::packet | ( | int | index | ) | const [inline] |
Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.
Definition at line 90 of file CwiseUnaryOp.h.
EIGEN_STRONG_INLINE PacketScalar CwiseUnaryOp< UnaryOp, MatrixType >::packet | ( | int | row, | |
int | col | |||
) | const [inline] |
Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.
Definition at line 79 of file CwiseUnaryOp.h.
EIGEN_STRONG_INLINE int CwiseUnaryOp< UnaryOp, MatrixType >::rows | ( | ) | const [inline] |
Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.
Definition at line 70 of file CwiseUnaryOp.h.
const UnaryOp CwiseUnaryOp< UnaryOp, MatrixType >::m_functor [protected] |
Definition at line 97 of file CwiseUnaryOp.h.
const MatrixType::Nested CwiseUnaryOp< UnaryOp, MatrixType >::m_matrix [protected] |
Definition at line 96 of file CwiseUnaryOp.h.