18 #define EIGEN_CWISE_BINOP_RETURN_TYPE(OP) \ 19 CwiseBinaryOp<OP<typename internal::traits<ExpressionType>::Scalar>, ExpressionType, OtherDerived> 23 #define EIGEN_CWISE_UNOP_RETURN_TYPE(OP) \ 24 CwiseUnaryOp<OP<typename internal::traits<ExpressionType>::Scalar>, ExpressionType> 28 #define EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(OP) \ 29 CwiseBinaryOp<OP<typename internal::traits<ExpressionType>::Scalar>, ExpressionType, \ 30 typename ExpressionType::ConstantReturnType > 50 template<
typename ExpressionType>
class Cwise 59 inline Cwise(
const ExpressionType& matrix) : m_matrix(matrix) {}
62 inline const ExpressionType& _expression()
const {
return m_matrix; }
64 template<
typename OtherDerived>
65 const EIGEN_CWISE_PRODUCT_RETURN_TYPE(ExpressionType,OtherDerived)
68 template<
typename OtherDerived>
73 template<
typename OtherDerived>
79 template<
typename OtherDerived>
97 operator+(
const Scalar& scalar)
const;
102 {
return mat + scalar; }
104 ExpressionType& operator+=(
const Scalar& scalar);
109 ExpressionType&
operator-=(
const Scalar& scalar);
111 template<
typename OtherDerived>
114 template<
typename OtherDerived>
117 template<
typename OtherDerived>
const EIGEN_CWISE_BINOP_RETURN_TYPE(std::less)
118 operator<(const MatrixBase<OtherDerived>& other)
const;
120 template<
typename OtherDerived>
const EIGEN_CWISE_BINOP_RETURN_TYPE(std::less_equal)
121 operator<=(const MatrixBase<OtherDerived>& other)
const;
123 template<
typename OtherDerived>
const EIGEN_CWISE_BINOP_RETURN_TYPE(std::greater)
126 template<
typename OtherDerived>
const EIGEN_CWISE_BINOP_RETURN_TYPE(std::greater_equal)
129 template<
typename OtherDerived>
const EIGEN_CWISE_BINOP_RETURN_TYPE(std::equal_to)
132 template<
typename OtherDerived>
const EIGEN_CWISE_BINOP_RETURN_TYPE(std::not_equal_to)
136 const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::less)
137 operator<(Scalar s)
const;
139 const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::less_equal)
140 operator<=(Scalar s)
const;
142 const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::greater)
143 operator>(Scalar s)
const;
145 const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::greater_equal)
146 operator>=(Scalar s)
const;
148 const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::equal_to)
149 operator==(Scalar s)
const;
151 const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::not_equal_to)
152 operator!=(Scalar s)
const;
155 #ifdef EIGEN_CWISE_PLUGIN 156 #include EIGEN_CWISE_PLUGIN 171 template<
typename Derived>
184 template<
typename Derived>
192 #endif // EIGEN_CWISE_H friend const ScalarAddReturnType operator+(const Scalar &scalar, const Cwise &mat)
Definition: Cwise.h:101
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_inverse_mult_op< typename Derived::Scalar >, const Derived > operator/(const typename Derived::Scalar &s, const Eigen::ArrayBase< Derived > &a)
Component-wise division of a scalar by array elements.
Definition: GlobalFunctions.h:74
Definition: Functors.h:480
Definition: Functors.h:744
Definition: Functors.h:903
ExpressionType & operator-=(const Scalar &scalar)
Definition: CwiseOperators.h:291
const ScalarAddReturnType operator-(const Scalar &scalar) const
Definition: CwiseOperators.h:284
const EIGEN_CWISE_BINOP_RETURN_TYPE() internal::scalar_max_op() max(const MatrixBase< OtherDerived > &other) const
Definition: Cwise.h:81
iterative scaling algorithm to equilibrate rows and column norms in matrices
Definition: TestIMU_Common.h:87
const internal::permut_matrix_product_retval< PermutationDerived, Derived, OnTheRight > operator*(const MatrixBase< Derived > &matrix, const PermutationBase< PermutationDerived > &permutation)
Definition: PermutationMatrix.h:539
Definition: Functors.h:464
Definition: Functors.h:726
Pseudo expression providing additional coefficient-wise operations.
Definition: Cwise.h:50
Definition: Functors.h:208
Definition: Functors.h:887
const EIGEN_CWISE_BINOP_RETURN_TYPE() internal::scalar_min_op() min(const MatrixBase< OtherDerived > &other) const
Definition: Cwise.h:75
Definition: Functors.h:351
Definition: Functors.h:104
Definition: Functors.h:841
Definition: Functors.h:763
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:59
ExpressionType & operator/=(const MatrixBase< OtherDerived > &other)
Definition: CwiseOperators.h:81
Definition: Functors.h:871
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48
Definition: ForwardDeclarations.h:17
Definition: Functors.h:127
Definition: Functors.h:329