Record whether the underlying tensor storage can be accessed directly during the evaluation of an expression.

This commit is contained in:
Benoit Steiner
2016-01-19 17:05:10 -08:00
parent 34057cff23
commit 5b7713dd33
28 changed files with 53 additions and 5 deletions

View File

@@ -123,6 +123,7 @@ struct TensorEvaluator<const TensorLayoutSwapOp<ArgType>, Device>
PacketAccess = TensorEvaluator<ArgType, Device>::PacketAccess,
Layout = (static_cast<int>(TensorEvaluator<ArgType, Device>::Layout) == static_cast<int>(ColMajor)) ? RowMajor : ColMajor,
CoordAccess = false, // to be implemented
RawAccess = TensorEvaluator<ArgType, Device>::RawAccess
};
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)