added const Tensor3expression

release/4.3a0
Manohar Paluri 2010-03-01 18:08:18 +00:00
parent 8bf8e4dc1f
commit e670e00e3b
1 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,14 @@ namespace tensors {
return Tensor3Expression<Tensor3, Index<N1, I> , Index<N2, J> , Index<N3, return Tensor3Expression<Tensor3, Index<N1, I> , Index<N2, J> , Index<N3,
K> > (*this); K> > (*this);
} }
/** convert to expression */
template<char I, char J, char K> Tensor3Expression<const Tensor3, Index<N1, I> ,
Index<N2, J> , Index<N3, K> > operator()(const Index<N1, I>& i,
const Index<N2, J>& j, const Index<N3, K>& k) const {
return Tensor3Expression<const Tensor3, Index<N1, I> , Index<N2, J> , Index<N3,
K> > (*this);
}
}; // Tensor3 }; // Tensor3
/** Rank 3 permutation tensor */ /** Rank 3 permutation tensor */