From e670e00e3bfada70fb515a2c2179b4332c6609f7 Mon Sep 17 00:00:00 2001 From: Manohar Paluri Date: Mon, 1 Mar 2010 18:08:18 +0000 Subject: [PATCH] added const Tensor3expression --- cpp/Tensor3.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */