mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-31 17:22:07 +08:00
Fix flags of Product<>
This commit is contained in:
parent
34ca81b1bf
commit
b5fd774775
@ -33,12 +33,12 @@ template<typename Lhs, typename Rhs, int Option, typename StorageKind> class Pro
|
|||||||
namespace internal {
|
namespace internal {
|
||||||
template<typename Lhs, typename Rhs, int Option>
|
template<typename Lhs, typename Rhs, int Option>
|
||||||
struct traits<Product<Lhs, Rhs, 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>
|
// 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
|
// TODO: This flag should eventually go in a separate evaluator traits class
|
||||||
enum {
|
enum {
|
||||||
Flags = traits<typename ProductReturnType<Lhs, Rhs>::Type>::Flags & ~(EvalBeforeNestingBit | DirectAccessBit)
|
Flags = traits<CoeffBasedProduct<Lhs, Rhs, NestByRefBit> >::Flags & ~(EvalBeforeNestingBit | DirectAccessBit)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} // end namespace internal
|
} // end namespace internal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user