diff --git a/include/boost/numeric/ublas/storage.hpp b/include/boost/numeric/ublas/storage.hpp index f9af3a21..f628a397 100644 --- a/include/boost/numeric/ublas/storage.hpp +++ b/include/boost/numeric/ublas/storage.hpp @@ -1620,6 +1620,10 @@ namespace boost { namespace numeric { namespace ublas { return lhs.equal(rhs); } BOOST_UBLAS_INLINE + friend bool operator != (const self_type& lhs, const self_type& rhs) { + return !lhs.equal(rhs); + } + BOOST_UBLAS_INLINE friend bool operator < (const self_type& lhs, const self_type& rhs) { return lhs.less(rhs); } @@ -1648,6 +1652,11 @@ namespace boost { namespace numeric { namespace ublas { } template BOOST_UBLAS_INLINE + bool operator != (const index_pair& lhs, const index_pair& rhs) { + return !lhs.equal(rhs); + } + template + BOOST_UBLAS_INLINE bool operator < (const index_pair& lhs, const index_pair& rhs) { return lhs.less(rhs); } @@ -1797,6 +1806,10 @@ namespace boost { namespace numeric { namespace ublas { return lhs.equal(rhs); } BOOST_UBLAS_INLINE + friend bool operator != (const self_type& lhs, const self_type& rhs) { + return !lhs.equal(rhs); + } + BOOST_UBLAS_INLINE friend bool operator < (const self_type& lhs, const self_type& rhs) { return lhs.less(rhs); } @@ -1826,6 +1839,11 @@ namespace boost { namespace numeric { namespace ublas { } template BOOST_UBLAS_INLINE + bool operator != (const index_triple& lhs, const index_triple& rhs) { + return lhs.equal(rhs); + } + template + BOOST_UBLAS_INLINE bool operator < (const index_triple& lhs, const index_triple& rhs) { return lhs.less(rhs); }