Marked the contraction operation as read only, since its result can't be assigned.

This commit is contained in:
Benoit Steiner 2015-01-29 10:29:47 -08:00
parent 5a6ea4edf6
commit e896c0ade7

View File

@ -423,7 +423,7 @@ struct traits<TensorEvaluator<const TensorContractionOp<Indices_, LeftArgType_,
} // end namespace internal } // end namespace internal
template<typename Indices, typename LhsXprType, typename RhsXprType> template<typename Indices, typename LhsXprType, typename RhsXprType>
class TensorContractionOp : public TensorBase<TensorContractionOp<Indices, LhsXprType, RhsXprType> > class TensorContractionOp : public TensorBase<TensorContractionOp<Indices, LhsXprType, RhsXprType>, ReadOnlyAccessors>
{ {
public: public:
typedef typename Eigen::internal::traits<TensorContractionOp>::Scalar Scalar; typedef typename Eigen::internal::traits<TensorContractionOp>::Scalar Scalar;