diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-11-07 16:38:14 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-11-07 16:38:14 +0100 |
commit | 76c230a84d4857722e4a72e9007302a504af0fb7 (patch) | |
tree | 0565d86ff27ff165bab2e8b0b6c11876a6394bc1 /Eigen/src/Core/MatrixBase.h | |
parent | 57327cc2d5aab1cc51dd1308bd0d000f2ccb623c (diff) |
Add an option to test evaluators globally
Diffstat (limited to 'Eigen/src/Core/MatrixBase.h')
-rw-r--r-- | Eigen/src/Core/MatrixBase.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index e77b49627..61798317e 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -184,11 +184,19 @@ template<typename Derived> class MatrixBase operator*(const MatrixBase<OtherDerived> &other) const { return this->lazyProduct(other); } #else + +#ifdef EIGEN_TEST_EVALUATORS + template<typename OtherDerived> + const Product<Derived,OtherDerived> + operator*(const MatrixBase<OtherDerived> &other) const; +#else template<typename OtherDerived> const typename ProductReturnType<Derived,OtherDerived>::Type operator*(const MatrixBase<OtherDerived> &other) const; #endif +#endif + template<typename OtherDerived> EIGEN_DEVICE_FUNC const typename LazyProductReturnType<Derived,OtherDerived>::Type |