Prevent heap allocation in diagonal product

This commit is contained in:
Arthur Feeney
2022-01-21 11:24:36 -06:00
committed by Rasmus Munk Larsen
parent a0fc640c18
commit 4b0926f99b
2 changed files with 17 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ struct traits<DiagonalMatrix<Scalar_,SizeAtCompileTime,MaxSizeAtCompileTime> >
typedef Matrix<Scalar_,SizeAtCompileTime,1,0,MaxSizeAtCompileTime,1> DiagonalVectorType;
typedef DiagonalShape StorageKind;
enum {
Flags = LvalueBit | NoPreferredStorageOrderBit
Flags = LvalueBit | NoPreferredStorageOrderBit | NestByRefBit
};
};
}