$treeview $search $mathjax
|
Eigen
3.2.3
$projectbrief
|
$projectbrief
|
$searchbox |
00001 00005 template<typename OtherDerived> 00006 EIGEN_STRONG_INLINE const EIGEN_CWISE_PRODUCT_RETURN_TYPE(Derived,OtherDerived) 00007 operator*(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const 00008 { 00009 return EIGEN_CWISE_PRODUCT_RETURN_TYPE(Derived,OtherDerived)(derived(), other.derived()); 00010 } 00011 00016 template<typename OtherDerived> 00017 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_quotient_op<Scalar>, const Derived, const OtherDerived> 00018 operator/(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const 00019 { 00020 return CwiseBinaryOp<internal::scalar_quotient_op<Scalar>, const Derived, const OtherDerived>(derived(), other.derived()); 00021 } 00022 00030 EIGEN_MAKE_CWISE_BINARY_OP(min,internal::scalar_min_op) 00031 00032 00036 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_min_op<Scalar>, const Derived, 00037 const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> > 00038 #ifdef EIGEN_PARSED_BY_DOXYGEN 00039 min 00040 #else 00041 (min) 00042 #endif 00043 (const Scalar &other) const 00044 { 00045 return (min)(Derived::PlainObject::Constant(rows(), cols(), other)); 00046 } 00047 00055 EIGEN_MAKE_CWISE_BINARY_OP(max,internal::scalar_max_op) 00056 00057 00061 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_max_op<Scalar>, const Derived, 00062 const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> > 00063 #ifdef EIGEN_PARSED_BY_DOXYGEN 00064 max 00065 #else 00066 (max) 00067 #endif 00068 (const Scalar &other) const 00069 { 00070 return (max)(Derived::PlainObject::Constant(rows(), cols(), other)); 00071 } 00072 00080 EIGEN_MAKE_CWISE_BINARY_OP(operator<,std::less) 00081 00082 00089 EIGEN_MAKE_CWISE_BINARY_OP(operator<=,std::less_equal) 00090 00098 EIGEN_MAKE_CWISE_BINARY_OP(operator>,std::greater) 00099 00107 EIGEN_MAKE_CWISE_BINARY_OP(operator>=,std::greater_equal) 00108 00121 EIGEN_MAKE_CWISE_BINARY_OP(operator==,std::equal_to) 00122 00135 EIGEN_MAKE_CWISE_BINARY_OP(operator!=,std::not_equal_to) 00136 00137 // scalar addition 00138 00146 inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived> 00147 operator+(const Scalar& scalar) const 00148 { 00149 return CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived>(derived(), internal::scalar_add_op<Scalar>(scalar)); 00150 } 00151 00152 friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived> 00153 operator+(const Scalar& scalar,const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& other) 00154 { 00155 return other + scalar; 00156 } 00157 00165 inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived> 00166 operator-(const Scalar& scalar) const 00167 { 00168 return *this + (-scalar); 00169 } 00170 00171 friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const Derived> > 00172 operator-(const Scalar& scalar,const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& other) 00173 { 00174 return (-other) + scalar; 00175 } 00176 00186 template<typename OtherDerived> 00187 inline const CwiseBinaryOp<internal::scalar_boolean_and_op, const Derived, const OtherDerived> 00188 operator&&(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const 00189 { 00190 EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value && internal::is_same<bool,typename OtherDerived::Scalar>::value), 00191 THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL); 00192 return CwiseBinaryOp<internal::scalar_boolean_and_op, const Derived, const OtherDerived>(derived(),other.derived()); 00193 } 00194 00204 template<typename OtherDerived> 00205 inline const CwiseBinaryOp<internal::scalar_boolean_or_op, const Derived, const OtherDerived> 00206 operator||(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const 00207 { 00208 EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value && internal::is_same<bool,typename OtherDerived::Scalar>::value), 00209 THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL); 00210 return CwiseBinaryOp<internal::scalar_boolean_or_op, const Derived, const OtherDerived>(derived(),other.derived()); 00211 }
1.6.1