add an eigen2support test and a few fixes

This commit is contained in:
Gael Guennebaud
2009-12-16 17:37:21 +01:00
parent 7a9988ebb6
commit 22a6ab1f4b
5 changed files with 77 additions and 8 deletions

View File

@@ -82,14 +82,10 @@ template<typename Derived> class ArrayBase
using Base::size;
using Base::coeff;
using Base::coeffRef;
// using Base::;
// using Base::;
using Base::operator=;
typedef typename Base::RealScalar RealScalar;
typedef typename Base::CoeffReturnType CoeffReturnType;
// typedef typename Base::ColXpr ColXpr;
// typedef typename Base::RowXpr RowXpr;
// typedef typename Base::;
#endif // not EIGEN_PARSED_BY_DOXYGEN
#ifndef EIGEN_PARSED_BY_DOXYGEN
@@ -144,6 +140,8 @@ template<typename Derived> class ArrayBase
// Derived& lazyAssign(const ArrayBase<OtherDerived>& other);
#endif // not EIGEN_PARSED_BY_DOXYGEN
Derived& operator+=(const Scalar& scalar)
{ return *this = derived() + scalar; }
template<typename OtherDerived>
Derived& operator+=(const ArrayBase<OtherDerived>& other);