Public Member Functions | Protected Attributes
CwiseUnaryOp< UnaryOp, MatrixType > Class Template Reference

Generic expression of a coefficient-wise unary operator of a matrix or a vector. More...

List of all members.

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 row, int col) const
template<int LoadMode>
PacketScalar packet (int index) const
int rows () const
- Public Member Functions inherited from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >
const AdjointReturnType adjoint () const
bool all (void) const
bool any (void) const
const DiagonalMatrix
< CwiseUnaryOp< UnaryOp,
MatrixType > > 
asDiagonal () const
const CwiseBinaryOp
< CustomBinaryOp, CwiseUnaryOp
< UnaryOp, MatrixType >
, OtherDerived > 
binaryExpr (const MatrixBase< OtherDerived > &other, const CustomBinaryOp &func=CustomBinaryOp()) const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Type 
block (int startRow, int startCol, int blockRows, int blockCols)
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType > >::Type 
block (int startRow, int startCol, int blockRows, int blockCols) const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >
, BlockRows, BlockCols >::Type 
block (int startRow, int startCol)
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType >, BlockRows,
BlockCols >::Type 
block (int startRow, int startCol) const
const CwiseUnaryOp
< ei_scalar_cast_op< typename
ei_traits< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Scalar, NewType >
, CwiseUnaryOp< UnaryOp,
MatrixType > > 
cast () const
Scalar & coeffRef (int row, int col)
Scalar & coeffRef (int index)
ColXpr col (int i)
const ColXpr col (int i) const
const PartialRedux
< CwiseUnaryOp< UnaryOp,
MatrixType >, Vertical > 
colwise () const
void computeInverse (MatrixBase< ResultType > *result) const
ConjugateReturnType conjugate () const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Type 
corner (CornerType type, int cRows, int cCols)
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType > >::Type 
corner (CornerType type, int cRows, int cCols) const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >, CRows,
CCols >::Type 
corner (CornerType type)
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType >, CRows, CCols >
::Type 
corner (CornerType type) const
int count () const
PlainMatrixType cross (const MatrixBase< OtherDerived > &other) const
const Cwise< CwiseUnaryOp
< UnaryOp, MatrixType > > 
cwise () const
Cwise< CwiseUnaryOp< UnaryOp,
MatrixType > > 
cwise ()
Scalar determinant () const
DiagonalCoeffs< CwiseUnaryOp
< UnaryOp, MatrixType > > 
diagonal ()
const DiagonalCoeffs
< CwiseUnaryOp< UnaryOp,
MatrixType > > 
diagonal () const
Scalar dot (const MatrixBase< OtherDerived > &other) const
EigenvaluesReturnType eigenvalues () const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >
, Dynamic >::SubVectorType 
end (int size)
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType >, Dynamic >
::SubVectorType 
end (int size) const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >, Size >
::SubVectorType 
end ()
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType >, Size >
::SubVectorType 
end () const
Matrix< Scalar, 3, 1 > eulerAngles (int a0, int a1, int a2) const
const ei_eval< CwiseUnaryOp
< UnaryOp, MatrixType >
>::type 
eval () const
void fill (const Scalar &value)
const WithFormat< CwiseUnaryOp
< UnaryOp, MatrixType > > 
format (const IOFormat &fmt) const
const ImagReturnType imag () const
int innerSize () const
const PlainMatrixType inverse () const
bool isApprox (const MatrixBase< OtherDerived > &other, RealScalar prec=precision< Scalar >()) const
bool isApproxToConstant (const Scalar &value, RealScalar prec=precision< Scalar >()) const
bool isConstant (const Scalar &value, RealScalar prec=precision< Scalar >()) const
bool isDiagonal (RealScalar prec=precision< Scalar >()) const
bool isIdentity (RealScalar prec=precision< Scalar >()) const
bool isLowerTriangular (RealScalar prec=precision< Scalar >()) const
bool isMuchSmallerThan (const RealScalar &other, RealScalar prec=precision< Scalar >()) const
bool isMuchSmallerThan (const MatrixBase< OtherDerived > &other, RealScalar prec=precision< Scalar >()) const
bool isOnes (RealScalar prec=precision< Scalar >()) const
bool isOrthogonal (const MatrixBase< OtherDerived > &other, RealScalar prec=precision< Scalar >()) const
bool isUnitary (RealScalar prec=precision< Scalar >()) const
bool isUpperTriangular (RealScalar prec=precision< Scalar >()) const
bool isVector () const
bool isZero (RealScalar prec=precision< Scalar >()) const
const Flagged< CwiseUnaryOp
< UnaryOp, MatrixType >
, 0, EvalBeforeNestingBit|EvalBeforeAssigningBit > 
lazy () const
CwiseUnaryOp< UnaryOp,
MatrixType > & 
lazyAssign (const SparseProduct< Derived1, Derived2, SparseTimeDenseProduct > &product)
CwiseUnaryOp< UnaryOp,
MatrixType > & 
lazyAssign (const SparseProduct< Derived1, Derived2, DenseTimeSparseProduct > &product)
const LDLT< PlainMatrixType > ldlt () const
const LLT< PlainMatrixType > llt () const
RealScalar lpNorm () const
const LU< PlainMatrixType > lu () const
const Flagged< CwiseUnaryOp
< UnaryOp, MatrixType >, Added, 0 > 
marked () const
ei_traits< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Scalar 
maxCoeff () const
ei_traits< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Scalar 
maxCoeff (int *row, int *col) const
ei_traits< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Scalar 
maxCoeff (int *index) const
ei_traits< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Scalar 
minCoeff () const
ei_traits< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Scalar 
minCoeff (int *row, int *col) const
ei_traits< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Scalar 
minCoeff (int *index) const
Minor< CwiseUnaryOp< UnaryOp,
MatrixType > > 
minor (int row, int col)
const Minor< CwiseUnaryOp
< UnaryOp, MatrixType > > 
minor (int row, int col) const
const NestByValue
< CwiseUnaryOp< UnaryOp,
MatrixType > > 
nestByValue () const
int nonZeros () const
RealScalar norm () const
void normalize ()
const PlainMatrixType normalized () const
bool operator!= (const MatrixBase< OtherDerived > &other) const
const Scalar operator() (int row, int col) const
Scalar & operator() (int row, int col)
const Scalar operator() (int index) const
Scalar & operator() (int index)
const ScalarMultipleReturnType operator* (const Scalar &scalar) const
const ProductReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType >, OtherDerived >
::Type 
operator* (const MatrixBase< OtherDerived > &other) const
CwiseUnaryOp< UnaryOp,
MatrixType > & 
operator*= (const Scalar &other)
CwiseUnaryOp< UnaryOp,
MatrixType > & 
operator*= (const MatrixBase< OtherDerived > &other)
const CwiseBinaryOp
< ei_scalar_sum_op< typename
ei_traits< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Scalar >, CwiseUnaryOp
< UnaryOp, MatrixType >
, OtherDerived > 
operator+ (const MatrixBase< OtherDerived > &other) const
CwiseUnaryOp< UnaryOp,
MatrixType > & 
operator+= (const MatrixBase< OtherDerived > &other)
CwiseUnaryOp< UnaryOp,
MatrixType > & 
operator+= (const Flagged< Product< Lhs, Rhs, CacheFriendlyProduct >, 0, EvalBeforeNestingBit|EvalBeforeAssigningBit > &other)
const CwiseUnaryOp
< ei_scalar_opposite_op
< typename ei_traits
< CwiseUnaryOp< UnaryOp,
MatrixType > >::Scalar >
, CwiseUnaryOp< UnaryOp,
MatrixType > > 
operator- () const
const CwiseBinaryOp
< ei_scalar_difference_op
< typename ei_traits
< CwiseUnaryOp< UnaryOp,
MatrixType > >::Scalar >
, CwiseUnaryOp< UnaryOp,
MatrixType >, OtherDerived > 
operator- (const MatrixBase< OtherDerived > &other) const
CwiseUnaryOp< UnaryOp,
MatrixType > & 
operator-= (const MatrixBase< OtherDerived > &other)
const CwiseUnaryOp
< ei_scalar_quotient1_op
< typename ei_traits
< CwiseUnaryOp< UnaryOp,
MatrixType > >::Scalar >
, CwiseUnaryOp< UnaryOp,
MatrixType > > 
operator/ (const Scalar &scalar) const
CwiseUnaryOp< UnaryOp,
MatrixType > & 
operator/= (const Scalar &other)
CommaInitializer< CwiseUnaryOp
< UnaryOp, MatrixType > > 
operator<< (const Scalar &s)
CommaInitializer< CwiseUnaryOp
< UnaryOp, MatrixType > > 
operator<< (const MatrixBase< OtherDerived > &other)
CwiseUnaryOp< UnaryOp,
MatrixType > & 
operator= (const MatrixBase< OtherDerived > &other)
CwiseUnaryOp< UnaryOp,
MatrixType > & 
operator= (const MatrixBase &other)
bool operator== (const MatrixBase< OtherDerived > &other) const
const Scalar operator[] (int index) const
Scalar & operator[] (int index)
RealScalar operatorNorm () const
int outerSize () const
Part< CwiseUnaryOp< UnaryOp,
MatrixType >, Mode > 
part ()
const Part< CwiseUnaryOp
< UnaryOp, MatrixType >, Mode > 
part () const
const QR< PlainMatrixType > qr () const
const RealReturnType real () const
ei_result_of< BinaryOp(typename
ei_traits< CwiseUnaryOp
< UnaryOp, MatrixType >
>::Scalar)>::type 
redux (const BinaryOp &func) const
RowXpr row (int i)
const RowXpr row (int i) const
const PartialRedux
< CwiseUnaryOp< UnaryOp,
MatrixType >, Horizontal > 
rowwise () const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >
>::SubVectorType 
segment (int start, int size)
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType > >::SubVectorType 
segment (int start, int size) const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >, Size >
::SubVectorType 
segment (int start)
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType >, Size >
::SubVectorType 
segment (int start) const
const Select< CwiseUnaryOp
< UnaryOp, MatrixType >
, ThenDerived, ElseDerived > 
select (const MatrixBase< ThenDerived > &thenMatrix, const MatrixBase< ElseDerived > &elseMatrix) const
const Select< CwiseUnaryOp
< UnaryOp, MatrixType >
, ThenDerived, NestByValue
< typename
ThenDerived::ConstantReturnType > > 
select (const MatrixBase< ThenDerived > &thenMatrix, typename ThenDerived::Scalar elseScalar) const
const Select< CwiseUnaryOp
< UnaryOp, MatrixType >
, NestByValue< typename
ElseDerived::ConstantReturnType >
, ElseDerived > 
select (typename ElseDerived::Scalar thenScalar, const MatrixBase< ElseDerived > &elseMatrix) const
CwiseUnaryOp< UnaryOp,
MatrixType > & 
setConstant (const Scalar &value)
CwiseUnaryOp< UnaryOp,
MatrixType > & 
setIdentity ()
CwiseUnaryOp< UnaryOp,
MatrixType > & 
setOnes ()
CwiseUnaryOp< UnaryOp,
MatrixType > & 
setRandom ()
CwiseUnaryOp< UnaryOp,
MatrixType > & 
setZero ()
int size () const
ei_plain_matrix_type_column_major
< OtherDerived >::type 
solveTriangular (const MatrixBase< OtherDerived > &other) const
void solveTriangularInPlace (const MatrixBase< OtherDerived > &other) const
RealScalar squaredNorm () const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >
, Dynamic >::SubVectorType 
start (int size)
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType >, Dynamic >
::SubVectorType 
start (int size) const
BlockReturnType< CwiseUnaryOp
< UnaryOp, MatrixType >, Size >
::SubVectorType 
start (void)
const BlockReturnType
< CwiseUnaryOp< UnaryOp,
MatrixType >, Size >
::SubVectorType 
start () const
int stride (void) const
Scalar sum () const
SVD< PlainMatrixType > svd () const
void swap (const MatrixBase< OtherDerived > &other)
Scalar trace () const
Eigen::Transpose< CwiseUnaryOp
< UnaryOp, MatrixType > > 
transpose ()
const Eigen::Transpose
< CwiseUnaryOp< UnaryOp,
MatrixType > > 
transpose () const
void transposeInPlace ()
const CwiseUnaryOp
< CustomUnaryOp, CwiseUnaryOp
< UnaryOp, MatrixType > > 
unaryExpr (const CustomUnaryOp &func=CustomUnaryOp()) const
PlainMatrixType unitOrthogonal (void) const
void visit (Visitor &func) const
const Scalar w () const
Scalar & w ()
void writePacket (int row, int col, const PacketScalar &x)
void writePacket (int index, const PacketScalar &x)
const Scalar x () const
Scalar & x ()
const Scalar y () const
Scalar & y ()
const Scalar z () const
Scalar & z ()

Protected Attributes

const UnaryOp m_functor
const MatrixType::Nested m_matrix

Additional Inherited Members

- Public Types inherited from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >
enum  
- Static Public Member Functions inherited from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >
static const ConstantReturnType Constant (int rows, int cols, const Scalar &value)
static const ConstantReturnType Constant (int size, const Scalar &value)
static const ConstantReturnType Constant (const Scalar &value)
static const IdentityReturnType Identity ()
static const IdentityReturnType Identity (int rows, int cols)
static const CwiseNullaryOp
< CustomNullaryOp,
CwiseUnaryOp< UnaryOp,
MatrixType > > 
NullaryExpr (int rows, int cols, const CustomNullaryOp &func)
static const CwiseNullaryOp
< CustomNullaryOp,
CwiseUnaryOp< UnaryOp,
MatrixType > > 
NullaryExpr (int size, const CustomNullaryOp &func)
static const CwiseNullaryOp
< CustomNullaryOp,
CwiseUnaryOp< UnaryOp,
MatrixType > > 
NullaryExpr (const CustomNullaryOp &func)
static const ConstantReturnType Ones (int rows, int cols)
static const ConstantReturnType Ones (int size)
static const ConstantReturnType Ones ()
static const CwiseNullaryOp
< ei_scalar_random_op< Scalar >
, CwiseUnaryOp< UnaryOp,
MatrixType > > 
Random (int rows, int cols)
static const CwiseNullaryOp
< ei_scalar_random_op< Scalar >
, CwiseUnaryOp< UnaryOp,
MatrixType > > 
Random (int size)
static const CwiseNullaryOp
< ei_scalar_random_op< Scalar >
, CwiseUnaryOp< UnaryOp,
MatrixType > > 
Random ()
static const BasisReturnType Unit (int size, int i)
static const BasisReturnType Unit (int i)
static const BasisReturnType UnitW ()
static const BasisReturnType UnitX ()
static const BasisReturnType UnitY ()
static const BasisReturnType UnitZ ()
static const ConstantReturnType Zero (int rows, int cols)
static const ConstantReturnType Zero (int size)
static const ConstantReturnType Zero ()
- Protected Member Functions inherited from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >
 MatrixBase ()

Detailed Description

template<typename UnaryOp, typename MatrixType>
class Eigen::CwiseUnaryOp< UnaryOp, MatrixType >

Generic expression of a coefficient-wise unary operator of a matrix or a vector.

Parameters:
UnaryOptemplate functor implementing the operator
MatrixTypethe 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.

See also:
MatrixBase::unaryExpr(const CustomUnaryOp &) const, class CwiseBinaryOp, class CwiseNullaryOp

Member Function Documentation

int cols ( void  ) const
inline
Returns:
the number of columns.
See also:
rows(), ColsAtCompileTime

Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.

int rows ( void  ) const
inline
Returns:
the number of rows.
See also:
cols(), RowsAtCompileTime

Reimplemented from MatrixBase< CwiseUnaryOp< UnaryOp, MatrixType > >.


The documentation for this class was generated from the following file: