CHANGE Remove greater for testing and replece with rhs.less(lhs)

[SVN r34365]
This commit is contained in:
Michael Stevens 2006-06-21 18:17:53 +00:00
parent ffbfa47181
commit c454f5cb95

View File

@ -1587,10 +1587,6 @@ namespace boost { namespace numeric { namespace ublas {
return (v1_ < rhs.v1_);
}
BOOST_UBLAS_INLINE
bool greater(const self_type& rhs) const {
return (v1_ > rhs.v1_);
}
BOOST_UBLAS_INLINE
friend bool operator == (const self_type& lhs, const self_type& rhs) {
return lhs.equal(rhs);
}
@ -1608,11 +1604,11 @@ namespace boost { namespace numeric { namespace ublas {
}
BOOST_UBLAS_INLINE
friend bool operator > (const self_type& lhs, const self_type& rhs) {
return lhs.greater(rhs);
return rhs.less(lhs);
}
BOOST_UBLAS_INLINE
friend bool operator <= (const self_type& lhs, const self_type& rhs) {
return !lhs.greater(rhs);
return !rhs.less(lhs);
}
private:
@ -1764,11 +1760,6 @@ namespace boost { namespace numeric { namespace ublas {
(v1_ == rhs.v1_ && v2_ < rhs.v2_));
}
BOOST_UBLAS_INLINE
bool greater(const self_type& rhs) const {
return ((v1_ > rhs.v1_) ||
(v1_ == rhs.v1_ && v2_ > rhs.v2_));
}
BOOST_UBLAS_INLINE
friend bool operator == (const self_type& lhs, const self_type& rhs) {
return lhs.equal(rhs);
}
@ -1786,11 +1777,11 @@ namespace boost { namespace numeric { namespace ublas {
}
BOOST_UBLAS_INLINE
friend bool operator > (const self_type& lhs, const self_type& rhs) {
return lhs.greater(rhs);
return rhs.less(lhs);
}
BOOST_UBLAS_INLINE
friend bool operator <= (const self_type& lhs, const self_type& rhs) {
return !lhs.greater(rhs);
return !rhs.less(lhs);
}
private: