diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-12-02 17:53:26 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-12-02 17:53:26 +0100 |
commit | b5fd774775d31df3af532ab0798d8be3dc8448d9 (patch) | |
tree | 43870e1a1bdf51d2177dd54ee25fbeb676e60b6c | |
parent | 34ca81b1bfe77b11effdd463099b30d12b6466c9 (diff) |
Fix flags of Product<>
-rw-r--r-- | Eigen/src/Core/Product.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h index 970d257a5..3b8fd7d9a 100644 --- a/Eigen/src/Core/Product.h +++ b/Eigen/src/Core/Product.h @@ -33,12 +33,12 @@ template<typename Lhs, typename Rhs, int Option, typename StorageKind> class Pro namespace internal { template<typename Lhs, typename Rhs, int Option> struct traits<Product<Lhs, Rhs, Option> > - : traits<typename ProductReturnType<Lhs, Rhs>::Type> + : traits<CoeffBasedProduct<Lhs, Rhs, NestByRefBit> > { // We want A+B*C to be of type Product<Matrix, Sum> and not Product<Matrix, Matrix> // TODO: This flag should eventually go in a separate evaluator traits class enum { - Flags = traits<typename ProductReturnType<Lhs, Rhs>::Type>::Flags & ~(EvalBeforeNestingBit | DirectAccessBit) + Flags = traits<CoeffBasedProduct<Lhs, Rhs, NestByRefBit> >::Flags & ~(EvalBeforeNestingBit | DirectAccessBit) }; }; } // end namespace internal |