v0.5.86
Tensor4_ddg_number.hpp
Go to the documentation of this file.
1 /* This is for expressions where a number is used for one or more
2  slots, and an index for the others, yielding a
3  Tensor2_symmetric_Expr or Tensor3_dg_Expr. */
4 
5 /* First and second slot. */
6 
7 template<class A, class T, int N1, int N2>
9 {
10  A iterA;
11 public:
12  T operator()(const int N3, const int N4) const
13  {
14  return iterA(N1,N2,N3,N4);
15  }
16  Tensor4_ddg_number_01(const A &a):iterA(a) {}
17 };
18 
19 template<class A, class T, int N0, int N1>
21 {};
22 
23 /* Only first slot */
24 
25 template<class A, class T, int N1>
27 {
28  A iterA;
29 public:
30  T operator()(const int N2, const int N3, const int N4) const
31  {
32  return iterA(N1,N2,N3,N4);
33  }
34  Tensor4_ddg_number_0(const A &a):iterA(a) {}
35 };
36 
37 template<class A, class T, int N0>
39 {};
40 
T operator()(const int N2, const int N3, const int N4) const
T operator()(const int N3, const int N4) const