Pseudo expression providing additional coefficient-wise operations. More...
#include <Cwise.h>
Public Types | |
typedef ei_meta_if < ei_must_nest_by_value < ExpressionType >::ret, ExpressionType, const ExpressionType & >::ret | ExpressionTypeNested |
typedef ei_traits < ExpressionType >::Scalar | Scalar |
typedef CwiseUnaryOp < ei_scalar_add_op< Scalar > , ExpressionType > | ScalarAddReturnType |
Public Member Functions | |
const ExpressionType & | _expression () const |
Cwise (const ExpressionType &matrix) | |
template<typename OtherDerived > | |
const | EIGEN_CWISE_BINOP_RETURN_TYPE (std::not_equal_to) operator! |
template<typename OtherDerived > | |
const | EIGEN_CWISE_BINOP_RETURN_TYPE (std::equal_to) operator |
template<typename OtherDerived > | |
const | EIGEN_CWISE_BINOP_RETURN_TYPE (std::greater_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::less_equal) operator< |
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 (ei_scalar_max_op) max(const MatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
const | EIGEN_CWISE_BINOP_RETURN_TYPE (ei_scalar_min_op) min(const MatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
const | EIGEN_CWISE_BINOP_RETURN_TYPE (ei_scalar_quotient_op) operator/(const MatrixBase< OtherDerived > &other) const |
const | EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::not_equal_to) operator! |
const | EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::equal_to) operator |
const | EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::greater_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::less_equal) operator< |
const | EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE (std::less) operator<(Scalar s) const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_pow_op) pow(const Scalar &exponent) const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_sin_op) sin() const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_cos_op) cos() const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_log_op) log() const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_exp_op) exp() const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_sqrt_op) sqrt() const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_inverse_op) inverse() const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_cube_op) cube() const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_square_op) square() const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_abs2_op) abs2() const |
const | EIGEN_CWISE_UNOP_RETURN_TYPE (ei_scalar_abs_op) abs() const |
template<typename OtherDerived > | |
const EIGEN_CWISE_PRODUCT_RETURN_TYPE | operator* (const MatrixBase< OtherDerived > &other) const |
template<typename OtherDerived > | |
ExpressionType & | operator*= (const MatrixBase< OtherDerived > &other) |
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) |
Protected Attributes | |
ExpressionTypeNested | m_matrix |
Private Member Functions | |
Cwise & | operator= (const Cwise &) |
Related Functions | |
(Note that these are not member functions.) | |
const ScalarAddReturnType | operator+ (const Scalar &scalar, const Cwise &mat) |
Pseudo expression providing additional coefficient-wise operations.
ExpressionType | the 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.
Note that some methods are defined in the Array module.
Example:
Output:
Definition at line 74 of file Cwise.h.
typedef ei_meta_if<ei_must_nest_by_value<ExpressionType>::ret, ExpressionType, const ExpressionType&>::ret Cwise< ExpressionType >::ExpressionTypeNested |
typedef CwiseUnaryOp<ei_scalar_add_op<Scalar>, ExpressionType> Cwise< ExpressionType >::ScalarAddReturnType |
const ExpressionType& Cwise< ExpressionType >::_expression | ( | ) | const [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE | ( | std::not_equal_to | ) | [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE | ( | std::equal_to | ) | [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE | ( | std::greater_equal | ) | [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE | ( | std::greater | ) | const [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE | ( | std::less_equal | ) | [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE | ( | std::less | ) | const [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE | ( | ei_scalar_max_op | ) | const [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE | ( | ei_scalar_min_op | ) | const [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_BINOP_RETURN_TYPE | ( | ei_scalar_quotient_op | ) | const [inline] |
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE | ( | std::not_equal_to | ) |
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE | ( | std::equal_to | ) |
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE | ( | std::greater_equal | ) |
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE | ( | std::greater | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE | ( | std::less_equal | ) |
const Cwise< ExpressionType >::EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE | ( | std::less | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_pow_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_sin_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_cos_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_log_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_exp_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_sqrt_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_inverse_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_cube_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_square_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_abs2_op | ) | const |
const Cwise< ExpressionType >::EIGEN_CWISE_UNOP_RETURN_TYPE | ( | ei_scalar_abs_op | ) | const |
EIGEN_STRONG_INLINE const EIGEN_CWISE_PRODUCT_RETURN_TYPE Cwise< ExpressionType >::operator* | ( | const MatrixBase< OtherDerived > & | other | ) | const [inline] |
Example:
Output:
Definition at line 205 of file CwiseBinaryOp.h.
ExpressionType & Cwise< ExpressionType >::operator*= | ( | const MatrixBase< OtherDerived > & | other | ) | [inline] |
Replaces this expression by its coefficient-wise product with other.
Example:
Output:
Definition at line 234 of file CwiseBinaryOp.h.
const Cwise< ExpressionType >::ScalarAddReturnType Cwise< ExpressionType >::operator+ | ( | const Scalar & | scalar | ) | const [inline] |
*this
with each coeff incremented by the constant scalar Example:
Output:
Definition at line 401 of file CwiseOperators.h.
ExpressionType & Cwise< ExpressionType >::operator+= | ( | const Scalar & | scalar | ) | [inline] |
Adds the given scalar to each coeff of this expression.
Example:
Output:
Definition at line 416 of file CwiseOperators.h.
const Cwise< ExpressionType >::ScalarAddReturnType Cwise< ExpressionType >::operator- | ( | const Scalar & | scalar | ) | const [inline] |
*this
with each coeff decremented by the constant scalar Example:
Output:
Definition at line 432 of file CwiseOperators.h.
ExpressionType & Cwise< ExpressionType >::operator-= | ( | const Scalar & | scalar | ) | [inline] |
Substracts the given scalar from each coeff of this expression.
Example:
Output:
Definition at line 448 of file CwiseOperators.h.
ExpressionType & Cwise< ExpressionType >::operator/= | ( | const MatrixBase< OtherDerived > & | other | ) | [inline] |
Replaces this expression by its coefficient-wise quotient by other.
Example:
Output:
Definition at line 248 of file CwiseBinaryOp.h.
Cwise& Cwise< ExpressionType >::operator= | ( | const Cwise< ExpressionType > & | ) | [private] |
const ScalarAddReturnType operator+ | ( | const Scalar & | scalar, | |
const Cwise< ExpressionType > & | mat | |||
) | [friend] |
ExpressionTypeNested Cwise< ExpressionType >::m_matrix [protected] |