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 64 template<
typename OtherDerived>
68 template<
typename OtherDerived>
73 template<
typename OtherDerived>
79 template<
typename OtherDerived>
102 {
return mat + scalar; }
111 template<
typename OtherDerived>
114 template<
typename OtherDerived>
118 operator<(const MatrixBase<OtherDerived>& other)
const;
121 operator<=(const MatrixBase<OtherDerived>& other)
const;
137 operator<(
Scalar s)
const;
143 operator>(
Scalar s)
const;
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 USING_NAMESPACE_ACADO IntermediateState sin(const Expression &arg)
friend const ScalarAddReturnType operator+(const Scalar &scalar, const Cwise &mat)
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_pow_op< typename Derived::Scalar >, const Derived > pow(const Eigen::ArrayBase< Derived > &x, const typename Derived::Scalar &exponent)
IntermediateState sqrt(const Expression &arg)
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.
const EIGEN_CWISE_UNOP_RETURN_TYPE(internal::scalar_abs_op) abs() const
ExpressionType & operator-=(const Scalar &scalar)
const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::less) operator<(Scalar s) const
CwiseUnaryOp< internal::scalar_add_op< Scalar >, ExpressionType > ScalarAddReturnType
const EIGEN_CWISE_BINOP_RETURN_TYPE() internal::scalar_max_op() max(const MatrixBase< OtherDerived > &other) const
std::string operator==(const ExportIndex &_arg1, const ExportIndex &_arg2)
iterative scaling algorithm to equilibrate rows and column norms in matrices
const internal::permut_matrix_product_retval< PermutationDerived, Derived, OnTheRight > operator*(const MatrixBase< Derived > &matrix, const PermutationBase< PermutationDerived > &permutation)
const ExpressionType & _expression() const
EIGEN_STRONG_INLINE const CwiseUnaryOp< internal::scalar_abs2_op< Scalar >, const Derived > abs2() const
internal::conditional< internal::must_nest_by_value< ExpressionType >::ret, ExpressionType, const ExpressionType & >::type ExpressionTypeNested
IntermediateState cos(const Expression &arg)
ConstraintComponent operator>=(double ub_, const ConstraintComponent &arg)
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
Pseudo expression providing additional coefficient-wise operations.
ConstraintComponent operator<=(double lb_, const ConstraintComponent &arg)
const CwiseUnaryOp< internal::scalar_cube_op< Scalar >, const Derived > cube() const
ExpressionType & operator+=(const Scalar &scalar)
const EIGEN_CWISE_BINOP_RETURN_TYPE() internal::scalar_min_op() min(const MatrixBase< OtherDerived > &other) const
const EIGEN_CWISE_PRODUCT_RETURN_TYPE(ExpressionType, OtherDerived) operator*(const MatrixBase< OtherDerived > &other) const
IntermediateState square(const Expression &arg)
internal::traits< ExpressionType >::Scalar Scalar
const ScalarAddReturnType operator+(const Scalar &scalar) const
IntermediateState exp(const Expression &arg)
Cwise(const ExpressionType &matrix)
const ScalarAddReturnType operator-(const Scalar &scalar) const
Generic expression where a coefficient-wise unary operator is applied to an expression.
ExpressionType & operator/=(const MatrixBase< OtherDerived > &other)
ExpressionTypeNested m_matrix
const EIGEN_CWISE_BINOP_RETURN_TYPE(internal::scalar_quotient_op) operator/(const MatrixBase< OtherDerived > &other) const
ExpressionType & operator*=(const MatrixBase< OtherDerived > &other)
Base class for all dense matrices, vectors, and expressions.
IntermediateState log(const Expression &arg)