mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Marked the contraction operation as read only, since its result can't be assigned.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user