ArrayCwiseBinaryOps.h
Go to the documentation of this file.
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 
00039 EIGEN_MAKE_CWISE_BINARY_OP(max,internal::scalar_max_op)
00040 
00048 EIGEN_MAKE_CWISE_BINARY_OP(operator<,std::less)
00049 
00057 EIGEN_MAKE_CWISE_BINARY_OP(operator<=,std::less_equal)
00058 
00066 EIGEN_MAKE_CWISE_BINARY_OP(operator>,std::greater)
00067 
00075 EIGEN_MAKE_CWISE_BINARY_OP(operator>=,std::greater_equal)
00076 
00089 EIGEN_MAKE_CWISE_BINARY_OP(operator==,std::equal_to)
00090 
00103 EIGEN_MAKE_CWISE_BINARY_OP(operator!=,std::not_equal_to)
00104 
00105 // scalar addition
00106 
00114 inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived>
00115 operator+(const Scalar& scalar) const
00116 {
00117   return CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived>(derived(), internal::scalar_add_op<Scalar>(scalar));
00118 }
00119 
00120 friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived>
00121 operator+(const Scalar& scalar,const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& other)
00122 {
00123   return other + scalar;
00124 }
00125 
00133 inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived>
00134 operator-(const Scalar& scalar) const
00135 {
00136   return *this + (-scalar);
00137 }
00138 
00139 friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const Derived> >
00140 operator-(const Scalar& scalar,const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& other)
00141 {
00142   return (-other) + scalar;
00143 }


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:30:44