DiagonalWrapper is a vector, so it must expose the LinearAccessBit flag.

This commit is contained in:
Gael Guennebaud 2016-05-19 13:06:21 +02:00
parent a226f6af6b
commit 6a2916df80

View File

@ -1325,7 +1325,7 @@ struct evaluator<Diagonal<ArgType, DiagIndex> >
enum {
CoeffReadCost = evaluator<ArgType>::CoeffReadCost,
Flags = (unsigned int)evaluator<ArgType>::Flags & (HereditaryBits | LinearAccessBit | DirectAccessBit) & ~RowMajorBit,
Flags = (unsigned int)(evaluator<ArgType>::Flags & (HereditaryBits | DirectAccessBit) & ~RowMajorBit) | LinearAccessBit,
Alignment = 0
};