10 #ifndef EIGEN_ARRAY_CWISE_OPERATORS_H 11 #define EIGEN_ARRAY_CWISE_OPERATORS_H 21 template<
typename ExpressionType>
23 Cwise<ExpressionType>::abs()
const 29 template<
typename ExpressionType>
37 template<
typename ExpressionType>
45 template<
typename ExpressionType>
53 template<
typename ExpressionType>
54 template<
typename OtherDerived>
55 EIGEN_STRONG_INLINE
const EIGEN_CWISE_PRODUCT_RETURN_TYPE(ExpressionType,OtherDerived)
58 return EIGEN_CWISE_PRODUCT_RETURN_TYPE(ExpressionType,OtherDerived)(_expression(), other.derived());
62 template<
typename ExpressionType>
63 template<
typename OtherDerived>
71 template<
typename ExpressionType>
72 template<
typename OtherDerived>
75 return m_matrix.const_cast_derived() = *
this * other;
79 template<
typename ExpressionType>
80 template<
typename OtherDerived>
83 return m_matrix.const_cast_derived() = *
this / other;
93 template<
typename ExpressionType>
95 Cwise<ExpressionType>::sqrt()
const 101 template<
typename ExpressionType>
105 return _expression();
110 template<
typename ExpressionType>
114 return _expression();
119 template<
typename ExpressionType>
128 template<
typename ExpressionType>
132 return _expression();
136 template<
typename ExpressionType>
140 return _expression();
144 template<
typename ExpressionType>
148 return _expression();
155 template<
typename ExpressionType>
156 template<
typename OtherDerived>
157 inline const EIGEN_CWISE_BINOP_RETURN_TYPE(std::less)
160 return EIGEN_CWISE_BINOP_RETURN_TYPE(std::less)(_expression(), other.derived());
164 template<
typename ExpressionType>
165 template<
typename OtherDerived>
166 inline const EIGEN_CWISE_BINOP_RETURN_TYPE(std::less_equal)
169 return EIGEN_CWISE_BINOP_RETURN_TYPE(std::less_equal)(_expression(), other.derived());
173 template<
typename ExpressionType>
174 template<
typename OtherDerived>
175 inline const EIGEN_CWISE_BINOP_RETURN_TYPE(std::greater)
178 return EIGEN_CWISE_BINOP_RETURN_TYPE(std::greater)(_expression(), other.derived());
182 template<
typename ExpressionType>
183 template<
typename OtherDerived>
184 inline const EIGEN_CWISE_BINOP_RETURN_TYPE(std::greater_equal)
187 return EIGEN_CWISE_BINOP_RETURN_TYPE(std::greater_equal)(_expression(), other.derived());
191 template<
typename ExpressionType>
192 template<
typename OtherDerived>
193 inline const EIGEN_CWISE_BINOP_RETURN_TYPE(std::equal_to)
196 return EIGEN_CWISE_BINOP_RETURN_TYPE(std::equal_to)(_expression(), other.derived());
200 template<
typename ExpressionType>
201 template<
typename OtherDerived>
202 inline const EIGEN_CWISE_BINOP_RETURN_TYPE(std::not_equal_to)
205 return EIGEN_CWISE_BINOP_RETURN_TYPE(std::not_equal_to)(_expression(), other.derived());
211 template<
typename ExpressionType>
212 inline const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::less)
215 return EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::less)(_expression(),
216 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
220 template<
typename ExpressionType>
221 inline const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::less_equal)
224 return EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::less_equal)(_expression(),
225 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
229 template<
typename ExpressionType>
230 inline const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::greater)
233 return EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::greater)(_expression(),
234 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
238 template<
typename ExpressionType>
239 inline const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::greater_equal)
242 return EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::greater_equal)(_expression(),
243 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
247 template<
typename ExpressionType>
248 inline const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::equal_to)
251 return EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::equal_to)(_expression(),
252 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
256 template<
typename ExpressionType>
257 inline const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::not_equal_to)
260 return EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::not_equal_to)(_expression(),
261 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
267 template<
typename ExpressionType>
275 template<
typename ExpressionType>
278 return m_matrix.const_cast_derived() = *
this + scalar;
282 template<
typename ExpressionType>
286 return *
this + (-scalar);
290 template<
typename ExpressionType>
293 return m_matrix.const_cast_derived() = *
this - scalar;
298 #endif // EIGEN_ARRAY_CWISE_OPERATORS_H 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
iterative scaling algorithm to equilibrate rows and column norms in matrices
Definition: TestIMU_Common.h:87
Definition: Functors.h:464
Definition: Functors.h:726
Pseudo expression providing additional coefficient-wise operations.
Definition: Cwise.h:50
Definition: Functors.h:208
EIGEN_STRONG_INLINE const EIGEN_CWISE_UNOP_RETURN_TYPE(internal::scalar_abs_op) Cwise< ExpressionType >
Definition: CwiseOperators.h:22
Definition: Functors.h:887
Definition: Functors.h:351
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: Functors.h:708
Definition: Functors.h:329