diff --git a/cpp/Tensor3.h b/cpp/Tensor3.h index 5959eaa11..64b3e33ea 100644 --- a/cpp/Tensor3.h +++ b/cpp/Tensor3.h @@ -46,6 +46,14 @@ namespace tensors { return Tensor3Expression , Index , Index > (*this); } + + /** convert to expression */ + template Tensor3Expression , + Index , Index > operator()(const Index& i, + const Index& j, const Index& k) const { + return Tensor3Expression , Index , Index > (*this); + } }; // Tensor3 /** Rank 3 permutation tensor */