10 #ifndef EIGEN_ARRAY_CWISE_OPERATORS_H 11 #define EIGEN_ARRAY_CWISE_OPERATORS_H 21 template<
typename ExpressionType>
29 template<
typename ExpressionType>
37 template<
typename ExpressionType>
45 template<
typename ExpressionType>
53 template<
typename ExpressionType>
54 template<
typename OtherDerived>
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>
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>
164 template<
typename ExpressionType>
165 template<
typename OtherDerived>
173 template<
typename ExpressionType>
174 template<
typename OtherDerived>
182 template<
typename ExpressionType>
183 template<
typename OtherDerived>
191 template<
typename ExpressionType>
192 template<
typename OtherDerived>
200 template<
typename ExpressionType>
201 template<
typename OtherDerived>
211 template<
typename ExpressionType>
216 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
220 template<
typename ExpressionType>
225 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
229 template<
typename ExpressionType>
234 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
238 template<
typename ExpressionType>
243 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
247 template<
typename ExpressionType>
252 typename ExpressionType::ConstantReturnType(_expression().rows(), _expression().cols(), s));
256 template<
typename ExpressionType>
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 #define EIGEN_STRONG_INLINE
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.
ExpressionType & operator-=(const Scalar &scalar)
const CwiseUnaryOp< internal::scalar_pow_op< Scalar >, const Derived > pow(const Scalar &exponent) const
CwiseUnaryOp< internal::scalar_add_op< Scalar >, ExpressionType > ScalarAddReturnType
const internal::permut_matrix_product_retval< PermutationDerived, Derived, OnTheRight > operator*(const MatrixBase< Derived > &matrix, const PermutationBase< PermutationDerived > &permutation)
EIGEN_STRONG_INLINE const CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > abs2() const
#define EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(OP)
const CwiseUnaryOp< internal::scalar_square_op< Scalar >, const Derived > square() const
EIGEN_STRONG_INLINE const CwiseUnaryOp< internal::scalar_abs_op< Scalar >, const Derived > abs() const
const CwiseUnaryOp< internal::scalar_inverse_op< Scalar >, const Derived > inverse() const
#define EIGEN_CWISE_BINOP_RETURN_TYPE(OP)
Pseudo expression providing additional coefficient-wise operations.
EIGEN_STRONG_INLINE const EIGEN_CWISE_UNOP_RETURN_TYPE(internal::scalar_abs_op) Cwise< ExpressionType >
const CwiseUnaryOp< internal::scalar_cube_op< Scalar >, const Derived > cube() const
ExpressionType & operator+=(const Scalar &scalar)
const CwiseUnaryOp< internal::scalar_log_op< Scalar >, const Derived > log() const
const CwiseUnaryOp< internal::scalar_sin_op< Scalar >, const Derived > sin() const
internal::traits< ExpressionType >::Scalar Scalar
const ScalarAddReturnType operator+(const Scalar &scalar) const
#define EIGEN_CWISE_PRODUCT_RETURN_TYPE(LHS, RHS)
const CwiseUnaryOp< internal::scalar_cos_op< Scalar >, const Derived > cos() const
const CwiseUnaryOp< internal::scalar_sqrt_op< Scalar >, const Derived > sqrt() const
const ScalarAddReturnType operator-(const Scalar &scalar) const
const CwiseUnaryOp< internal::scalar_exp_op< Scalar >, const Derived > exp() const
Generic expression where a coefficient-wise unary operator is applied to an expression.
ExpressionType & operator/=(const MatrixBase< OtherDerived > &other)
ExpressionType & operator*=(const MatrixBase< OtherDerived > &other)
Base class for all dense matrices, vectors, and expressions.