Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes | Related Functions

Cwise< ExpressionType > Class Template Reference


Detailed Description

template<typename ExpressionType>
class Cwise< ExpressionType >

Pseudo expression providing additional coefficient-wise operations.

Parameters:
ExpressionTypethe type of the object on which to do coefficient-wise operations

This class represents an expression with additional coefficient-wise features. It is the return type of MatrixBase::cwise() and most of the time this is the only way it is used.

Example:

Output:

See also:
MatrixBase::cwise() const, MatrixBase::cwise()

Definition at line 60 of file Cwise.h.

#include <src/Eigen2Support/Cwise.h>

List of all members.

Public Types

typedef internal::traits
< ExpressionType >::Scalar 
Scalar
typedef internal::conditional
< internal::must_nest_by_value
< ExpressionType >::ret,
ExpressionType, const
ExpressionType & >::type 
ExpressionTypeNested
typedef CwiseUnaryOp
< internal::scalar_add_op
< Scalar >, ExpressionType > 
ScalarAddReturnType

Public Member Functions

 Cwise (const ExpressionType &matrix)
const ExpressionType & _expression () const
template<typename OtherDerived >
const EIGEN_CWISE_PRODUCT_RETURN_TYPE (ExpressionType, OtherDerived) operator*(const MatrixBase< OtherDerived > &other) const
template<typename OtherDerived >
const EIGEN_CWISE_BINOP_RETURN_TYPE (internal::scalar_quotient_op) operator/(const MatrixBase< OtherDerived > &other) const
template<typename OtherDerived >
const EIGEN_CWISE_BINOP_RETURN_TYPE (internal::scalar_min_op) min(const MatrixBase< OtherDerived > &other) const
template<typename OtherDerived >
const EIGEN_CWISE_BINOP_RETURN_TYPE (internal::scalar_max_op) max(const MatrixBase< OtherDerived > &other) const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_abs_op) abs() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_abs2_op) abs2() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_square_op) square() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_cube_op) cube() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_inverse_op) inverse() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_sqrt_op) sqrt() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_exp_op) exp() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_log_op) log() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_cos_op) cos() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_sin_op) sin() const
const EIGEN_CWISE_UNOP_RETURN_TYPE (internal::scalar_pow_op) pow(const Scalar &exponent) const
const ScalarAddReturnType operator+ (const Scalar &scalar) const
ExpressionType & operator+= (const Scalar &scalar)
const ScalarAddReturnType operator- (const Scalar &scalar) const
ExpressionType & operator-= (const Scalar &scalar)
template<typename OtherDerived >
ExpressionType & operator*= (const MatrixBase< OtherDerived > &other)
template<typename OtherDerived >
ExpressionType & operator/= (const MatrixBase< OtherDerived > &other)
template<typename OtherDerived >
const EIGEN_CWISE_BINOP_RETURN_TYPE (std::less) operator<(const MatrixBase< OtherDerived > &other) const
template<typename OtherDerived >
const EIGEN_CWISE_BINOP_RETURN_TYPE (std::less_equal) operator<
template<typename OtherDerived >
const EIGEN_CWISE_BINOP_RETURN_TYPE (std::greater) operator>(const MatrixBase< OtherDerived > &other) const
template<typename OtherDerived >
const EIGEN_CWISE_BINOP_RETURN_TYPE (std::greater_equal) operator>
template<typename OtherDerived >
const EIGEN_CWISE_BINOP_RETURN_TYPE (std::equal_to) operator
template<typename OtherDerived >
const EIGEN_CWISE_BINOP_RETURN_TYPE (std::not_equal_to) operator!
const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::less) operator<(Scalar s) const
const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::less_equal) operator<
const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::greater) operator>(Scalar s) const
const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::greater_equal) operator>
const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::equal_to) operator
const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::not_equal_to) operator!

Protected Attributes

ExpressionTypeNested m_matrix

Related Functions

(Note that these are not member functions.)


const ScalarAddReturnType operator+ (const Scalar &scalar, const Cwise &mat)

Member Typedef Documentation

template<typename ExpressionType>
typedef internal::conditional<internal::must_nest_by_value<ExpressionType>::ret, ExpressionType, const ExpressionType&>::type Cwise< ExpressionType >::ExpressionTypeNested

Definition at line 66 of file Cwise.h.

template<typename ExpressionType>
typedef internal::traits<ExpressionType>::Scalar Cwise< ExpressionType >::Scalar

Definition at line 64 of file Cwise.h.

template<typename ExpressionType>
typedef CwiseUnaryOp<internal::scalar_add_op<Scalar>, ExpressionType> Cwise< ExpressionType >::ScalarAddReturnType

Definition at line 67 of file Cwise.h.


Constructor & Destructor Documentation

template<typename ExpressionType>
Cwise< ExpressionType >::Cwise ( const ExpressionType &  matrix ) [inline]

Definition at line 69 of file Cwise.h.


Member Function Documentation

template<typename ExpressionType>
const ExpressionType& Cwise< ExpressionType >::_expression (  ) const [inline]

Definition at line 72 of file Cwise.h.

References Cwise< ExpressionType >::m_matrix.

template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE ( internal::scalar_min_op   ) const
template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE ( internal::scalar_max_op   ) const
template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE ( std::less   ) const
template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE ( internal::scalar_quotient_op   ) const
template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE ( std::less_equal   )
template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE ( std::greater   ) const
template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE ( std::greater_equal   )
template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE ( std::equal_to   )
template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE ( std::not_equal_to   )
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE ( std::greater_equal   )
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE ( std::equal_to   )
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE ( std::not_equal_to   )
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE ( std::greater   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE ( std::less   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE ( std::less_equal   )
template<typename ExpressionType>
template<typename OtherDerived >
const Cwise< ExpressionType >::EIGEN_CWISE_PRODUCT_RETURN_TYPE ( ExpressionType  ,
OtherDerived   
) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_exp_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_abs_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_pow_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_cube_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_square_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_abs2_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_inverse_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_sqrt_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_log_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_cos_op   ) const
template<typename ExpressionType>
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE ( internal::scalar_sin_op   ) const
template<typename ExpressionType >
template<typename OtherDerived >
ExpressionType & Cwise< ExpressionType >::operator*= ( const MatrixBase< OtherDerived > &  other ) [inline]
template<typename ExpressionType >
const Cwise< ExpressionType >::ScalarAddReturnType Cwise< ExpressionType >::operator+ ( const Scalar scalar ) const [inline]
Deprecated:
ArrayBase::operator+(Scalar)

Definition at line 300 of file CwiseOperators.h.

template<typename ExpressionType >
ExpressionType & Cwise< ExpressionType >::operator+= ( const Scalar scalar ) [inline]
Deprecated:
ArrayBase::operator+=(Scalar)

Definition at line 307 of file CwiseOperators.h.

template<typename ExpressionType >
const Cwise< ExpressionType >::ScalarAddReturnType Cwise< ExpressionType >::operator- ( const Scalar scalar ) const [inline]
Deprecated:
ArrayBase::operator-(Scalar)

Definition at line 315 of file CwiseOperators.h.

template<typename ExpressionType >
ExpressionType & Cwise< ExpressionType >::operator-= ( const Scalar scalar ) [inline]
Deprecated:
ArrayBase::operator-=(Scalar)

Definition at line 322 of file CwiseOperators.h.

template<typename ExpressionType >
template<typename OtherDerived >
ExpressionType & Cwise< ExpressionType >::operator/= ( const MatrixBase< OtherDerived > &  other ) [inline]

Friends And Related Function Documentation

template<typename ExpressionType>
const ScalarAddReturnType operator+ ( const Scalar scalar,
const Cwise< ExpressionType > &  mat 
) [friend]

Definition at line 107 of file Cwise.h.


Member Data Documentation

template<typename ExpressionType>
ExpressionTypeNested Cwise< ExpressionType >::m_matrix [protected]

Definition at line 166 of file Cwise.h.

Referenced by Cwise< ExpressionType >::_expression().




Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:46:17 UTC 2011