mptensor  v0.3.0
Parallel Library for Tensor Network Methods
index_constructor.hpp
Go to the documentation of this file.
1 
2 #ifndef _INDEX_CONSTRUCTOR_HPP_
3 #define _INDEX_CONSTRUCTOR_HPP_
4 
11 Index(size_t j0) : idx(1) { idx[0] = j0; };
12 Index(size_t j0, size_t j1) : idx(2) {
13  idx[0] = j0;
14  idx[1] = j1;
15 };
16 Index(size_t j0, size_t j1, size_t j2) : idx(3) {
17  idx[0] = j0;
18  idx[1] = j1;
19  idx[2] = j2;
20 };
21 
23 Index(size_t j0, size_t j1, size_t j2, size_t j3) : idx(4) {
24  idx[0] = j0;
25  idx[1] = j1;
26  idx[2] = j2;
27  idx[3] = j3;
28 };
29 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4) : idx(5) {
30  idx[0] = j0;
31  idx[1] = j1;
32  idx[2] = j2;
33  idx[3] = j3;
34  idx[4] = j4;
35 };
36 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5)
37  : idx(6) {
38  idx[0] = j0;
39  idx[1] = j1;
40  idx[2] = j2;
41  idx[3] = j3;
42  idx[4] = j4;
43  idx[5] = j5;
44 };
45 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
46  size_t j6)
47  : idx(7) {
48  idx[0] = j0;
49  idx[1] = j1;
50  idx[2] = j2;
51  idx[3] = j3;
52  idx[4] = j4;
53  idx[5] = j5;
54  idx[6] = j6;
55 };
56 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
57  size_t j6, size_t j7)
58  : idx(8) {
59  idx[0] = j0;
60  idx[1] = j1;
61  idx[2] = j2;
62  idx[3] = j3;
63  idx[4] = j4;
64  idx[5] = j5;
65  idx[6] = j6;
66  idx[7] = j7;
67 };
68 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
69  size_t j6, size_t j7, size_t j8)
70  : idx(9) {
71  idx[0] = j0;
72  idx[1] = j1;
73  idx[2] = j2;
74  idx[3] = j3;
75  idx[4] = j4;
76  idx[5] = j5;
77  idx[6] = j6;
78  idx[7] = j7;
79  idx[8] = j8;
80 };
81 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
82  size_t j6, size_t j7, size_t j8, size_t j9)
83  : idx(10) {
84  idx[0] = j0;
85  idx[1] = j1;
86  idx[2] = j2;
87  idx[3] = j3;
88  idx[4] = j4;
89  idx[5] = j5;
90  idx[6] = j6;
91  idx[7] = j7;
92  idx[8] = j8;
93  idx[9] = j9;
94 };
95 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
96  size_t j6, size_t j7, size_t j8, size_t j9, size_t j10)
97  : idx(11) {
98  idx[0] = j0;
99  idx[1] = j1;
100  idx[2] = j2;
101  idx[3] = j3;
102  idx[4] = j4;
103  idx[5] = j5;
104  idx[6] = j6;
105  idx[7] = j7;
106  idx[8] = j8;
107  idx[9] = j9;
108  idx[10] = j10;
109 };
110 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
111  size_t j6, size_t j7, size_t j8, size_t j9, size_t j10, size_t j11)
112  : idx(12) {
113  idx[0] = j0;
114  idx[1] = j1;
115  idx[2] = j2;
116  idx[3] = j3;
117  idx[4] = j4;
118  idx[5] = j5;
119  idx[6] = j6;
120  idx[7] = j7;
121  idx[8] = j8;
122  idx[9] = j9;
123  idx[10] = j10;
124  idx[11] = j11;
125 };
126 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
127  size_t j6, size_t j7, size_t j8, size_t j9, size_t j10, size_t j11,
128  size_t j12)
129  : idx(13) {
130  idx[0] = j0;
131  idx[1] = j1;
132  idx[2] = j2;
133  idx[3] = j3;
134  idx[4] = j4;
135  idx[5] = j5;
136  idx[6] = j6;
137  idx[7] = j7;
138  idx[8] = j8;
139  idx[9] = j9;
140  idx[10] = j10;
141  idx[11] = j11;
142  idx[12] = j12;
143 };
144 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
145  size_t j6, size_t j7, size_t j8, size_t j9, size_t j10, size_t j11,
146  size_t j12, size_t j13)
147  : idx(14) {
148  idx[0] = j0;
149  idx[1] = j1;
150  idx[2] = j2;
151  idx[3] = j3;
152  idx[4] = j4;
153  idx[5] = j5;
154  idx[6] = j6;
155  idx[7] = j7;
156  idx[8] = j8;
157  idx[9] = j9;
158  idx[10] = j10;
159  idx[11] = j11;
160  idx[12] = j12;
161  idx[13] = j13;
162 };
163 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
164  size_t j6, size_t j7, size_t j8, size_t j9, size_t j10, size_t j11,
165  size_t j12, size_t j13, size_t j14)
166  : idx(15) {
167  idx[0] = j0;
168  idx[1] = j1;
169  idx[2] = j2;
170  idx[3] = j3;
171  idx[4] = j4;
172  idx[5] = j5;
173  idx[6] = j6;
174  idx[7] = j7;
175  idx[8] = j8;
176  idx[9] = j9;
177  idx[10] = j10;
178  idx[11] = j11;
179  idx[12] = j12;
180  idx[13] = j13;
181  idx[14] = j14;
182 };
183 Index(size_t j0, size_t j1, size_t j2, size_t j3, size_t j4, size_t j5,
184  size_t j6, size_t j7, size_t j8, size_t j9, size_t j10, size_t j11,
185  size_t j12, size_t j13, size_t j14, size_t j15)
186  : idx(16) {
187  idx[0] = j0;
188  idx[1] = j1;
189  idx[2] = j2;
190  idx[3] = j3;
191  idx[4] = j4;
192  idx[5] = j5;
193  idx[6] = j6;
194  idx[7] = j7;
195  idx[8] = j8;
196  idx[9] = j9;
197  idx[10] = j10;
198  idx[11] = j11;
199  idx[12] = j12;
200  idx[13] = j13;
201  idx[14] = j14;
202  idx[15] = j15;
203 };
204 
206 
208 #endif // _INDEX_CONSTRUCTOR_HPP_
Index(size_t j0)
Definition: index_constructor.hpp:11