add unary operator-(), computing the opposite.

This commit is contained in:
Benoit Jacob
2007-10-13 14:38:51 +00:00
parent 55e80e1599
commit 31061557a5
4 changed files with 73 additions and 0 deletions

View File

@@ -119,6 +119,8 @@ template<typename Scalar, typename Derived> class Object
Product<Derived, OtherDerived>
lazyProduct(const Object<Scalar, OtherDerived>& other) const EI_ALWAYS_INLINE;
Opposite<Derived> operator-() const;
template<typename OtherDerived>
Derived& operator+=(const Object<Scalar, OtherDerived>& other);
template<typename OtherDerived>