1 #include "../../src/FTensor.hpp"
21 delta_5(5., 0., 0., 5., 0., 5.), delta_2(2., 0., 0., 2., 0., 2.),
22 delta_7(7., 0., 0., 7., 0., 7.);
25 = (delta_3(
i,
k) * delta_5(
j,
l) && delta_3(
i,
l) * delta_5(
k,
j));
29 - (delta_3(0, 0) * delta_5(0, 0) - delta_3(0, 0) * delta_5(0, 0)),
30 "T4ddg && T4ddg (0,0,0,0)");
33 - (delta_3(0, 1) * delta_5(0, 0) - delta_3(0, 1) * delta_5(0, 0)),
34 "T4ddg && T4ddg (0,0,0,1)");
37 - (delta_3(0, 2) * delta_5(0, 0) - delta_3(0, 2) * delta_5(0, 0)),
38 "T4ddg && T4ddg (0,0,0,2)");
41 - (delta_3(0, 0) * delta_5(0, 1) - delta_3(0, 0) * delta_5(1, 0)),
42 "T4ddg && T4ddg (0,0,1,0)");
45 - (delta_3(0, 1) * delta_5(0, 1) - delta_3(0, 1) * delta_5(1, 0)),
46 "T4ddg && T4ddg (0,0,1,1)");
49 - (delta_3(0, 2) * delta_5(0, 1) - delta_3(0, 2) * delta_5(1, 0)),
50 "T4ddg && T4ddg (0,0,1,2)");
53 - (delta_3(0, 0) * delta_5(0, 2) - delta_3(0, 0) * delta_5(2, 0)),
54 "T4ddg && T4ddg (0,0,2,0)");
57 - (delta_3(0, 1) * delta_5(0, 2) - delta_3(0, 1) * delta_5(2, 0)),
58 "T4ddg && T4ddg (0,0,2,1)");
61 - (delta_3(0, 2) * delta_5(0, 2) - delta_3(0, 2) * delta_5(2, 0)),
62 "T4ddg && T4ddg (0,0,2,2)");
65 - (delta_3(0, 0) * delta_5(1, 0) - delta_3(0, 0) * delta_5(0, 1)),
66 "T4ddg && T4ddg (0,1,0,0)");
69 - (delta_3(0, 0) * delta_5(1, 1) - delta_3(0, 1) * delta_5(0, 1)),
70 "T4ddg && T4ddg (0,1,0,1)");
73 - (delta_3(0, 2) * delta_5(1, 0) - delta_3(0, 2) * delta_5(0, 1)),
74 "T4ddg && T4ddg (0,1,0,2)");
77 - (delta_3(0, 0) * delta_5(1, 1) - delta_3(0, 0) * delta_5(1, 1)),
78 "T4ddg && T4ddg (0,1,1,0)");
81 - (delta_3(0, 1) * delta_5(1, 1) - delta_3(0, 1) * delta_5(1, 1)),
82 "T4ddg && T4ddg (0,1,1,1)");
85 - (delta_3(0, 2) * delta_5(1, 1) - delta_3(0, 2) * delta_5(1, 1)),
86 "T4ddg && T4ddg (0,1,1,2)");
89 - (delta_3(0, 0) * delta_5(1, 2) - delta_3(0, 0) * delta_5(2, 1)),
90 "T4ddg && T4ddg (0,1,2,0)");
93 - (delta_3(0, 1) * delta_5(1, 2) - delta_3(0, 1) * delta_5(2, 1)),
94 "T4ddg && T4ddg (0,1,2,1)");
97 - (delta_3(0, 2) * delta_5(1, 2) - delta_3(0, 2) * delta_5(2, 1)),
98 "T4ddg && T4ddg (0,1,2,2)");
101 - (delta_3(0, 0) * delta_5(2, 0) - delta_3(0, 0) * delta_5(0, 2)),
102 "T4ddg && T4ddg (0,2,0,0)");
105 - (delta_3(0, 1) * delta_5(2, 0) - delta_3(0, 1) * delta_5(0, 2)),
106 "T4ddg && T4ddg (0,2,0,1)");
109 - (delta_3(0, 0) * delta_5(2, 2) - delta_3(0, 2) * delta_5(0, 2)),
110 "T4ddg && T4ddg (0,2,0,2)");
113 - (delta_3(0, 0) * delta_5(2, 1) - delta_3(0, 0) * delta_5(1, 2)),
114 "T4ddg && T4ddg (0,2,1,0)");
117 - (delta_3(0, 1) * delta_5(2, 1) - delta_3(0, 1) * delta_5(1, 2)),
118 "T4ddg && T4ddg (0,2,1,1)");
121 - (delta_3(0, 2) * delta_5(2, 1) - delta_3(0, 2) * delta_5(1, 2)),
122 "T4ddg && T4ddg (0,2,1,2)");
125 - (delta_3(0, 0) * delta_5(2, 2) - delta_3(0, 0) * delta_5(2, 2)),
126 "T4ddg && T4ddg (0,2,2,0)");
129 - (delta_3(0, 1) * delta_5(2, 2) - delta_3(0, 1) * delta_5(2, 2)),
130 "T4ddg && T4ddg (0,2,2,1)");
133 - (delta_3(0, 2) * delta_5(2, 2) - delta_3(0, 2) * delta_5(2, 2)),
134 "T4ddg && T4ddg (0,2,2,2)");
137 - (delta_3(1, 0) * delta_5(0, 0) - delta_3(1, 0) * delta_5(0, 0)),
138 "T4ddg && T4ddg (1,0,0,0)");
141 - (delta_3(1, 1) * delta_5(0, 0) - delta_3(1, 1) * delta_5(0, 0)),
142 "T4ddg && T4ddg (1,0,0,1)");
145 - (delta_3(1, 2) * delta_5(0, 0) - delta_3(1, 2) * delta_5(0, 0)),
146 "T4ddg && T4ddg (1,0,0,2)");
149 - (delta_3(1, 0) * delta_5(0, 1) - delta_3(1, 0) * delta_5(1, 0)),
150 "T4ddg && T4ddg (1,0,1,0)");
153 - (delta_3(1, 1) * delta_5(0, 1) - delta_3(1, 1) * delta_5(1, 0)),
154 "T4ddg && T4ddg (1,0,1,1)");
157 - (delta_3(1, 2) * delta_5(0, 1) - delta_3(1, 2) * delta_5(1, 0)),
158 "T4ddg && T4ddg (1,0,1,2)");
161 - (delta_3(1, 0) * delta_5(0, 2) - delta_3(1, 0) * delta_5(2, 0)),
162 "T4ddg && T4ddg (1,0,2,0)");
165 - (delta_3(1, 1) * delta_5(0, 2) - delta_3(1, 1) * delta_5(2, 0)),
166 "T4ddg && T4ddg (1,0,2,1)");
169 - (delta_3(1, 2) * delta_5(0, 2) - delta_3(1, 2) * delta_5(2, 0)),
170 "T4ddg && T4ddg (1,0,2,2)");
173 - (delta_3(1, 0) * delta_5(1, 0) - delta_3(1, 0) * delta_5(0, 1)),
174 "T4ddg && T4ddg (1,1,0,0)");
177 - (delta_3(1, 1) * delta_5(1, 0) - delta_3(1, 1) * delta_5(0, 1)),
178 "T4ddg && T4ddg (1,1,0,1)");
181 - (delta_3(1, 2) * delta_5(1, 0) - delta_3(1, 2) * delta_5(0, 1)),
182 "T4ddg && T4ddg (1,1,0,2)");
185 - (delta_3(1, 0) * delta_5(1, 1) - delta_3(1, 0) * delta_5(1, 1)),
186 "T4ddg && T4ddg (1,1,1,0)");
189 - (delta_3(1, 1) * delta_5(1, 1) - delta_3(1, 1) * delta_5(1, 1)),
190 "T4ddg && T4ddg (1,1,1,1)");
193 - (delta_3(1, 2) * delta_5(1, 1) - delta_3(1, 2) * delta_5(1, 1)),
194 "T4ddg && T4ddg (1,1,1,2)");
197 - (delta_3(1, 0) * delta_5(1, 2) - delta_3(1, 0) * delta_5(2, 1)),
198 "T4ddg && T4ddg (1,1,2,0)");
201 - (delta_3(1, 1) * delta_5(1, 2) - delta_3(1, 1) * delta_5(2, 1)),
202 "T4ddg && T4ddg (1,1,2,1)");
205 - (delta_3(1, 2) * delta_5(1, 2) - delta_3(1, 2) * delta_5(2, 1)),
206 "T4ddg && T4ddg (1,1,2,2)");
209 - (delta_3(1, 0) * delta_5(2, 0) - delta_3(1, 0) * delta_5(0, 2)),
210 "T4ddg && T4ddg (1,2,0,0)");
213 - (delta_3(1, 1) * delta_5(2, 0) - delta_3(1, 1) * delta_5(0, 2)),
214 "T4ddg && T4ddg (1,2,0,1)");
217 - (delta_3(1, 2) * delta_5(2, 0) - delta_3(1, 2) * delta_5(0, 2)),
218 "T4ddg && T4ddg (1,2,0,2)");
221 - (delta_3(1, 0) * delta_5(2, 1) - delta_3(1, 0) * delta_5(1, 2)),
222 "T4ddg && T4ddg (1,2,1,0)");
225 - (delta_3(1, 1) * delta_5(2, 1) - delta_3(1, 1) * delta_5(1, 2)),
226 "T4ddg && T4ddg (1,2,1,1)");
229 - (delta_3(1, 1) * delta_5(2, 2) - delta_3(1, 2) * delta_5(1, 2)),
230 "T4ddg && T4ddg (1,2,1,2)");
233 - (delta_3(1, 0) * delta_5(2, 2) - delta_3(1, 0) * delta_5(2, 2)),
234 "T4ddg && T4ddg (1,2,2,0)");
237 - (delta_3(1, 1) * delta_5(2, 2) - delta_3(1, 1) * delta_5(2, 2)),
238 "T4ddg && T4ddg (1,2,2,1)");
241 - (delta_3(1, 2) * delta_5(2, 2) - delta_3(1, 2) * delta_5(2, 2)),
242 "T4ddg && T4ddg (1,2,2,2)");
245 - (delta_3(2, 0) * delta_5(0, 0) - delta_3(2, 0) * delta_5(0, 0)),
246 "T4ddg && T4ddg (2,0,0,0)");
249 - (delta_3(2, 1) * delta_5(0, 0) - delta_3(2, 1) * delta_5(0, 0)),
250 "T4ddg && T4ddg (2,0,0,1)");
253 - (delta_3(2, 2) * delta_5(0, 0) - delta_3(2, 2) * delta_5(0, 0)),
254 "T4ddg && T4ddg (2,0,0,2)");
257 - (delta_3(2, 0) * delta_5(0, 1) - delta_3(2, 0) * delta_5(1, 0)),
258 "T4ddg && T4ddg (2,0,1,0)");
261 - (delta_3(2, 1) * delta_5(0, 1) - delta_3(2, 1) * delta_5(1, 0)),
262 "T4ddg && T4ddg (2,0,1,1)");
265 - (delta_3(2, 2) * delta_5(0, 1) - delta_3(2, 2) * delta_5(1, 0)),
266 "T4ddg && T4ddg (2,0,1,2)");
269 - (delta_3(2, 0) * delta_5(0, 2) - delta_3(2, 0) * delta_5(2, 0)),
270 "T4ddg && T4ddg (2,0,2,0)");
273 - (delta_3(2, 1) * delta_5(0, 2) - delta_3(2, 1) * delta_5(2, 0)),
274 "T4ddg && T4ddg (2,0,2,1)");
277 - (delta_3(2, 2) * delta_5(0, 2) - delta_3(2, 2) * delta_5(2, 0)),
278 "T4ddg && T4ddg (2,0,2,2)");
281 - (delta_3(2, 0) * delta_5(1, 0) - delta_3(2, 0) * delta_5(0, 1)),
282 "T4ddg && T4ddg (2,1,0,0)");
285 - (delta_3(2, 1) * delta_5(1, 0) - delta_3(2, 1) * delta_5(0, 1)),
286 "T4ddg && T4ddg (2,1,0,1)");
289 - (delta_3(2, 2) * delta_5(1, 0) - delta_3(2, 2) * delta_5(0, 1)),
290 "T4ddg && T4ddg (2,1,0,2)");
293 - (delta_3(2, 0) * delta_5(1, 1) - delta_3(2, 0) * delta_5(1, 1)),
294 "T4ddg && T4ddg (2,1,1,0)");
297 - (delta_3(2, 1) * delta_5(1, 1) - delta_3(2, 1) * delta_5(1, 1)),
298 "T4ddg && T4ddg (2,1,1,1)");
301 - (delta_3(2, 2) * delta_5(1, 1) - delta_3(2, 2) * delta_5(1, 1)),
302 "T4ddg && T4ddg (2,1,1,2)");
305 - (delta_3(2, 0) * delta_5(1, 2) - delta_3(2, 0) * delta_5(2, 1)),
306 "T4ddg && T4ddg (2,1,2,0)");
309 - (delta_3(2, 1) * delta_5(1, 2) - delta_3(2, 1) * delta_5(2, 1)),
310 "T4ddg && T4ddg (2,1,2,1)");
313 - (delta_3(2, 2) * delta_5(1, 2) - delta_3(2, 2) * delta_5(2, 1)),
314 "T4ddg && T4ddg (2,1,2,2)");
317 - (delta_3(2, 0) * delta_5(2, 0) - delta_3(2, 0) * delta_5(0, 2)),
318 "T4ddg && T4ddg (2,2,0,0)");
321 - (delta_3(2, 1) * delta_5(2, 0) - delta_3(2, 1) * delta_5(0, 2)),
322 "T4ddg && T4ddg (2,2,0,1)");
325 - (delta_3(2, 2) * delta_5(2, 0) - delta_3(2, 2) * delta_5(0, 2)),
326 "T4ddg && T4ddg (2,2,0,2)");
329 - (delta_3(2, 0) * delta_5(2, 1) - delta_3(2, 0) * delta_5(1, 2)),
330 "T4ddg && T4ddg (2,2,1,0)");
333 - (delta_3(2, 1) * delta_5(2, 1) - delta_3(2, 1) * delta_5(1, 2)),
334 "T4ddg && T4ddg (2,2,1,1)");
337 - (delta_3(2, 2) * delta_5(2, 1) - delta_3(2, 2) * delta_5(1, 2)),
338 "T4ddg && T4ddg (2,2,1,2)");
341 - (delta_3(2, 0) * delta_5(2, 2) - delta_3(2, 0) * delta_5(2, 2)),
342 "T4ddg && T4ddg (2,2,2,0)");
345 - (delta_3(2, 1) * delta_5(2, 2) - delta_3(2, 1) * delta_5(2, 2)),
346 "T4ddg && T4ddg (2,2,2,1)");
349 - (delta_3(2, 2) * delta_5(2, 2) - delta_3(2, 2) * delta_5(2, 2)),
350 "T4ddg && T4ddg (2,2,2,2)");
353 = (delta_2(
i,
k) * delta_7(
j,
l) && delta_2(
i,
l) * delta_7(
k,
j));
355 t4R_3(
i,
j,
k,
l) = t4R_1(
i,
j,
k,
l) + t4R_2(
i,
j,
k,
l);
356 test_for_zero(t4R_3(0, 0, 0, 0) - (t4R_1(0, 0, 0, 0) + t4R_2(0, 0, 0, 0)),
357 "T4R + T4R (0,0,0,0)");
358 test_for_zero(t4R_3(0, 0, 0, 1) - (t4R_1(0, 0, 0, 1) + t4R_2(0, 0, 0, 1)),
359 "T4R + T4R (0,0,0,1)");
360 test_for_zero(t4R_3(0, 0, 0, 2) - (t4R_1(0, 0, 0, 2) + t4R_2(0, 0, 0, 2)),
361 "T4R + T4R (0,0,0,2)");
362 test_for_zero(t4R_3(0, 0, 1, 0) - (t4R_1(0, 0, 1, 0) + t4R_2(0, 0, 1, 0)),
363 "T4R + T4R (0,0,1,0)");
364 test_for_zero(t4R_3(0, 0, 1, 1) - (t4R_1(0, 0, 1, 1) + t4R_2(0, 0, 1, 1)),
365 "T4R + T4R (0,0,1,1)");
366 test_for_zero(t4R_3(0, 0, 1, 2) - (t4R_1(0, 0, 1, 2) + t4R_2(0, 0, 1, 2)),
367 "T4R + T4R (0,0,1,2)");
368 test_for_zero(t4R_3(0, 0, 2, 0) - (t4R_1(0, 0, 2, 0) + t4R_2(0, 0, 2, 0)),
369 "T4R + T4R (0,0,2,0)");
370 test_for_zero(t4R_3(0, 0, 2, 1) - (t4R_1(0, 0, 2, 1) + t4R_2(0, 0, 2, 1)),
371 "T4R + T4R (0,0,2,1)");
372 test_for_zero(t4R_3(0, 0, 2, 2) - (t4R_1(0, 0, 2, 2) + t4R_2(0, 0, 2, 2)),
373 "T4R + T4R (0,0,2,2)");
374 test_for_zero(t4R_3(0, 1, 0, 0) - (t4R_1(0, 1, 0, 0) + t4R_2(0, 1, 0, 0)),
375 "T4R + T4R (0,1,0,0)");
376 test_for_zero(t4R_3(0, 1, 0, 1) - (t4R_1(0, 1, 0, 1) + t4R_2(0, 1, 0, 1)),
377 "T4R + T4R (0,1,0,1)");
378 test_for_zero(t4R_3(0, 1, 0, 2) - (t4R_1(0, 1, 0, 2) + t4R_2(0, 1, 0, 2)),
379 "T4R + T4R (0,1,0,2)");
380 test_for_zero(t4R_3(0, 1, 1, 0) - (t4R_1(0, 1, 1, 0) + t4R_2(0, 1, 1, 0)),
381 "T4R + T4R (0,1,1,0)");
382 test_for_zero(t4R_3(0, 1, 1, 1) - (t4R_1(0, 1, 1, 1) + t4R_2(0, 1, 1, 1)),
383 "T4R + T4R (0,1,1,1)");
384 test_for_zero(t4R_3(0, 1, 1, 2) - (t4R_1(0, 1, 1, 2) + t4R_2(0, 1, 1, 2)),
385 "T4R + T4R (0,1,1,2)");
386 test_for_zero(t4R_3(0, 1, 2, 0) - (t4R_1(0, 1, 2, 0) + t4R_2(0, 1, 2, 0)),
387 "T4R + T4R (0,1,2,0)");
388 test_for_zero(t4R_3(0, 1, 2, 1) - (t4R_1(0, 1, 2, 1) + t4R_2(0, 1, 2, 1)),
389 "T4R + T4R (0,1,2,1)");
390 test_for_zero(t4R_3(0, 1, 2, 2) - (t4R_1(0, 1, 2, 2) + t4R_2(0, 1, 2, 2)),
391 "T4R + T4R (0,1,2,2)");
392 test_for_zero(t4R_3(0, 2, 0, 0) - (t4R_1(0, 2, 0, 0) + t4R_2(0, 2, 0, 0)),
393 "T4R + T4R (0,2,0,0)");
394 test_for_zero(t4R_3(0, 2, 0, 1) - (t4R_1(0, 2, 0, 1) + t4R_2(0, 2, 0, 1)),
395 "T4R + T4R (0,2,0,1)");
396 test_for_zero(t4R_3(0, 2, 0, 2) - (t4R_1(0, 2, 0, 2) + t4R_2(0, 2, 0, 2)),
397 "T4R + T4R (0,2,0,2)");
398 test_for_zero(t4R_3(0, 2, 1, 0) - (t4R_1(0, 2, 1, 0) + t4R_2(0, 2, 1, 0)),
399 "T4R + T4R (0,2,1,0)");
400 test_for_zero(t4R_3(0, 2, 1, 1) - (t4R_1(0, 2, 1, 1) + t4R_2(0, 2, 1, 1)),
401 "T4R + T4R (0,2,1,1)");
402 test_for_zero(t4R_3(0, 2, 1, 2) - (t4R_1(0, 2, 1, 2) + t4R_2(0, 2, 1, 2)),
403 "T4R + T4R (0,2,1,2)");
404 test_for_zero(t4R_3(0, 2, 2, 0) - (t4R_1(0, 2, 2, 0) + t4R_2(0, 2, 2, 0)),
405 "T4R + T4R (0,2,2,0)");
406 test_for_zero(t4R_3(0, 2, 2, 1) - (t4R_1(0, 2, 2, 1) + t4R_2(0, 2, 2, 1)),
407 "T4R + T4R (0,2,2,1)");
408 test_for_zero(t4R_3(0, 2, 2, 2) - (t4R_1(0, 2, 2, 2) + t4R_2(0, 2, 2, 2)),
409 "T4R + T4R (0,2,2,2)");
410 test_for_zero(t4R_3(1, 0, 0, 0) - (t4R_1(1, 0, 0, 0) + t4R_2(1, 0, 0, 0)),
411 "T4R + T4R (1,0,0,0)");
412 test_for_zero(t4R_3(1, 0, 0, 1) - (t4R_1(1, 0, 0, 1) + t4R_2(1, 0, 0, 1)),
413 "T4R + T4R (1,0,0,1)");
414 test_for_zero(t4R_3(1, 0, 0, 2) - (t4R_1(1, 0, 0, 2) + t4R_2(1, 0, 0, 2)),
415 "T4R + T4R (1,0,0,2)");
416 test_for_zero(t4R_3(1, 0, 1, 0) - (t4R_1(1, 0, 1, 0) + t4R_2(1, 0, 1, 0)),
417 "T4R + T4R (1,0,1,0)");
418 test_for_zero(t4R_3(1, 0, 1, 1) - (t4R_1(1, 0, 1, 1) + t4R_2(1, 0, 1, 1)),
419 "T4R + T4R (1,0,1,1)");
420 test_for_zero(t4R_3(1, 0, 1, 2) - (t4R_1(1, 0, 1, 2) + t4R_2(1, 0, 1, 2)),
421 "T4R + T4R (1,0,1,2)");
422 test_for_zero(t4R_3(1, 0, 2, 0) - (t4R_1(1, 0, 2, 0) + t4R_2(1, 0, 2, 0)),
423 "T4R + T4R (1,0,2,0)");
424 test_for_zero(t4R_3(1, 0, 2, 1) - (t4R_1(1, 0, 2, 1) + t4R_2(1, 0, 2, 1)),
425 "T4R + T4R (1,0,2,1)");
426 test_for_zero(t4R_3(1, 0, 2, 2) - (t4R_1(1, 0, 2, 2) + t4R_2(1, 0, 2, 2)),
427 "T4R + T4R (1,0,2,2)");
428 test_for_zero(t4R_3(1, 1, 0, 0) - (t4R_1(1, 1, 0, 0) + t4R_2(1, 1, 0, 0)),
429 "T4R + T4R (1,1,0,0)");
430 test_for_zero(t4R_3(1, 1, 0, 1) - (t4R_1(1, 1, 0, 1) + t4R_2(1, 1, 0, 1)),
431 "T4R + T4R (1,1,0,1)");
432 test_for_zero(t4R_3(1, 1, 0, 2) - (t4R_1(1, 1, 0, 2) + t4R_2(1, 1, 0, 2)),
433 "T4R + T4R (1,1,0,2)");
434 test_for_zero(t4R_3(1, 1, 1, 0) - (t4R_1(1, 1, 1, 0) + t4R_2(1, 1, 1, 0)),
435 "T4R + T4R (1,1,1,0)");
436 test_for_zero(t4R_3(1, 1, 1, 1) - (t4R_1(1, 1, 1, 1) + t4R_2(1, 1, 1, 1)),
437 "T4R + T4R (1,1,1,1)");
438 test_for_zero(t4R_3(1, 1, 1, 2) - (t4R_1(1, 1, 1, 2) + t4R_2(1, 1, 1, 2)),
439 "T4R + T4R (1,1,1,2)");
440 test_for_zero(t4R_3(1, 1, 2, 0) - (t4R_1(1, 1, 2, 0) + t4R_2(1, 1, 2, 0)),
441 "T4R + T4R (1,1,2,0)");
442 test_for_zero(t4R_3(1, 1, 2, 1) - (t4R_1(1, 1, 2, 1) + t4R_2(1, 1, 2, 1)),
443 "T4R + T4R (1,1,2,1)");
444 test_for_zero(t4R_3(1, 1, 2, 2) - (t4R_1(1, 1, 2, 2) + t4R_2(1, 1, 2, 2)),
445 "T4R + T4R (1,1,2,2)");
446 test_for_zero(t4R_3(1, 2, 0, 0) - (t4R_1(1, 2, 0, 0) + t4R_2(1, 2, 0, 0)),
447 "T4R + T4R (1,2,0,0)");
448 test_for_zero(t4R_3(1, 2, 0, 1) - (t4R_1(1, 2, 0, 1) + t4R_2(1, 2, 0, 1)),
449 "T4R + T4R (1,2,0,1)");
450 test_for_zero(t4R_3(1, 2, 0, 2) - (t4R_1(1, 2, 0, 2) + t4R_2(1, 2, 0, 2)),
451 "T4R + T4R (1,2,0,2)");
452 test_for_zero(t4R_3(1, 2, 1, 0) - (t4R_1(1, 2, 1, 0) + t4R_2(1, 2, 1, 0)),
453 "T4R + T4R (1,2,1,0)");
454 test_for_zero(t4R_3(1, 2, 1, 1) - (t4R_1(1, 2, 1, 1) + t4R_2(1, 2, 1, 1)),
455 "T4R + T4R (1,2,1,1)");
456 test_for_zero(t4R_3(1, 2, 1, 2) - (t4R_1(1, 2, 1, 2) + t4R_2(1, 2, 1, 2)),
457 "T4R + T4R (1,2,1,2)");
458 test_for_zero(t4R_3(1, 2, 2, 0) - (t4R_1(1, 2, 2, 0) + t4R_2(1, 2, 2, 0)),
459 "T4R + T4R (1,2,2,0)");
460 test_for_zero(t4R_3(1, 2, 2, 1) - (t4R_1(1, 2, 2, 1) + t4R_2(1, 2, 2, 1)),
461 "T4R + T4R (1,2,2,1)");
462 test_for_zero(t4R_3(1, 2, 2, 2) - (t4R_1(1, 2, 2, 2) + t4R_2(1, 2, 2, 2)),
463 "T4R + T4R (1,2,2,2)");
464 test_for_zero(t4R_3(2, 0, 0, 0) - (t4R_1(2, 0, 0, 0) + t4R_2(2, 0, 0, 0)),
465 "T4R + T4R (2,0,0,0)");
466 test_for_zero(t4R_3(2, 0, 0, 1) - (t4R_1(2, 0, 0, 1) + t4R_2(2, 0, 0, 1)),
467 "T4R + T4R (2,0,0,1)");
468 test_for_zero(t4R_3(2, 0, 0, 2) - (t4R_1(2, 0, 0, 2) + t4R_2(2, 0, 0, 2)),
469 "T4R + T4R (2,0,0,2)");
470 test_for_zero(t4R_3(2, 0, 1, 0) - (t4R_1(2, 0, 1, 0) + t4R_2(2, 0, 1, 0)),
471 "T4R + T4R (2,0,1,0)");
472 test_for_zero(t4R_3(2, 0, 1, 1) - (t4R_1(2, 0, 1, 1) + t4R_2(2, 0, 1, 1)),
473 "T4R + T4R (2,0,1,1)");
474 test_for_zero(t4R_3(2, 0, 1, 2) - (t4R_1(2, 0, 1, 2) + t4R_2(2, 0, 1, 2)),
475 "T4R + T4R (2,0,1,2)");
476 test_for_zero(t4R_3(2, 0, 2, 0) - (t4R_1(2, 0, 2, 0) + t4R_2(2, 0, 2, 0)),
477 "T4R + T4R (2,0,2,0)");
478 test_for_zero(t4R_3(2, 0, 2, 1) - (t4R_1(2, 0, 2, 1) + t4R_2(2, 0, 2, 1)),
479 "T4R + T4R (2,0,2,1)");
480 test_for_zero(t4R_3(2, 0, 2, 2) - (t4R_1(2, 0, 2, 2) + t4R_2(2, 0, 2, 2)),
481 "T4R + T4R (2,0,2,2)");
482 test_for_zero(t4R_3(2, 1, 0, 0) - (t4R_1(2, 1, 0, 0) + t4R_2(2, 1, 0, 0)),
483 "T4R + T4R (2,1,0,0)");
484 test_for_zero(t4R_3(2, 1, 0, 1) - (t4R_1(2, 1, 0, 1) + t4R_2(2, 1, 0, 1)),
485 "T4R + T4R (2,1,0,1)");
486 test_for_zero(t4R_3(2, 1, 0, 2) - (t4R_1(2, 1, 0, 2) + t4R_2(2, 1, 0, 2)),
487 "T4R + T4R (2,1,0,2)");
488 test_for_zero(t4R_3(2, 1, 1, 0) - (t4R_1(2, 1, 1, 0) + t4R_2(2, 1, 1, 0)),
489 "T4R + T4R (2,1,1,0)");
490 test_for_zero(t4R_3(2, 1, 1, 1) - (t4R_1(2, 1, 1, 1) + t4R_2(2, 1, 1, 1)),
491 "T4R + T4R (2,1,1,1)");
492 test_for_zero(t4R_3(2, 1, 1, 2) - (t4R_1(2, 1, 1, 2) + t4R_2(2, 1, 1, 2)),
493 "T4R + T4R (2,1,1,2)");
494 test_for_zero(t4R_3(2, 1, 2, 0) - (t4R_1(2, 1, 2, 0) + t4R_2(2, 1, 2, 0)),
495 "T4R + T4R (2,1,2,0)");
496 test_for_zero(t4R_3(2, 1, 2, 1) - (t4R_1(2, 1, 2, 1) + t4R_2(2, 1, 2, 1)),
497 "T4R + T4R (2,1,2,1)");
498 test_for_zero(t4R_3(2, 1, 2, 2) - (t4R_1(2, 1, 2, 2) + t4R_2(2, 1, 2, 2)),
499 "T4R + T4R (2,1,2,2)");
500 test_for_zero(t4R_3(2, 2, 0, 0) - (t4R_1(2, 2, 0, 0) + t4R_2(2, 2, 0, 0)),
501 "T4R + T4R (2,2,0,0)");
502 test_for_zero(t4R_3(2, 2, 0, 1) - (t4R_1(2, 2, 0, 1) + t4R_2(2, 2, 0, 1)),
503 "T4R + T4R (2,2,0,1)");
504 test_for_zero(t4R_3(2, 2, 0, 2) - (t4R_1(2, 2, 0, 2) + t4R_2(2, 2, 0, 2)),
505 "T4R + T4R (2,2,0,2)");
506 test_for_zero(t4R_3(2, 2, 1, 0) - (t4R_1(2, 2, 1, 0) + t4R_2(2, 2, 1, 0)),
507 "T4R + T4R (2,2,1,0)");
508 test_for_zero(t4R_3(2, 2, 1, 1) - (t4R_1(2, 2, 1, 1) + t4R_2(2, 2, 1, 1)),
509 "T4R + T4R (2,2,1,1)");
510 test_for_zero(t4R_3(2, 2, 1, 2) - (t4R_1(2, 2, 1, 2) + t4R_2(2, 2, 1, 2)),
511 "T4R + T4R (2,2,1,2)");
512 test_for_zero(t4R_3(2, 2, 2, 0) - (t4R_1(2, 2, 2, 0) + t4R_2(2, 2, 2, 0)),
513 "T4R + T4R (2,2,2,0)");
514 test_for_zero(t4R_3(2, 2, 2, 1) - (t4R_1(2, 2, 2, 1) + t4R_2(2, 2, 2, 1)),
515 "T4R + T4R (2,2,2,1)");
516 test_for_zero(t4R_3(2, 2, 2, 2) - (t4R_1(2, 2, 2, 2) + t4R_2(2, 2, 2, 2)),
517 "T4R + T4R (2,2,2,2)");
519 t4R_3(
i,
j,
k,
l) = t4R_1(
i,
j,
k,
l) - t4R_2(
i,
j,
k,
l);
520 test_for_zero(t4R_3(0, 0, 0, 0) - (t4R_1(0, 0, 0, 0) - t4R_2(0, 0, 0, 0)),
521 "T4R - T4R (0,0,0,0)");
522 test_for_zero(t4R_3(0, 0, 0, 1) - (t4R_1(0, 0, 0, 1) - t4R_2(0, 0, 0, 1)),
523 "T4R - T4R (0,0,0,1)");
524 test_for_zero(t4R_3(0, 0, 0, 2) - (t4R_1(0, 0, 0, 2) - t4R_2(0, 0, 0, 2)),
525 "T4R - T4R (0,0,0,2)");
526 test_for_zero(t4R_3(0, 0, 1, 0) - (t4R_1(0, 0, 1, 0) - t4R_2(0, 0, 1, 0)),
527 "T4R - T4R (0,0,1,0)");
528 test_for_zero(t4R_3(0, 0, 1, 1) - (t4R_1(0, 0, 1, 1) - t4R_2(0, 0, 1, 1)),
529 "T4R - T4R (0,0,1,1)");
530 test_for_zero(t4R_3(0, 0, 1, 2) - (t4R_1(0, 0, 1, 2) - t4R_2(0, 0, 1, 2)),
531 "T4R - T4R (0,0,1,2)");
532 test_for_zero(t4R_3(0, 0, 2, 0) - (t4R_1(0, 0, 2, 0) - t4R_2(0, 0, 2, 0)),
533 "T4R - T4R (0,0,2,0)");
534 test_for_zero(t4R_3(0, 0, 2, 1) - (t4R_1(0, 0, 2, 1) - t4R_2(0, 0, 2, 1)),
535 "T4R - T4R (0,0,2,1)");
536 test_for_zero(t4R_3(0, 0, 2, 2) - (t4R_1(0, 0, 2, 2) - t4R_2(0, 0, 2, 2)),
537 "T4R - T4R (0,0,2,2)");
538 test_for_zero(t4R_3(0, 1, 0, 0) - (t4R_1(0, 1, 0, 0) - t4R_2(0, 1, 0, 0)),
539 "T4R - T4R (0,1,0,0)");
540 test_for_zero(t4R_3(0, 1, 0, 1) - (t4R_1(0, 1, 0, 1) - t4R_2(0, 1, 0, 1)),
541 "T4R - T4R (0,1,0,1)");
542 test_for_zero(t4R_3(0, 1, 0, 2) - (t4R_1(0, 1, 0, 2) - t4R_2(0, 1, 0, 2)),
543 "T4R - T4R (0,1,0,2)");
544 test_for_zero(t4R_3(0, 1, 1, 0) - (t4R_1(0, 1, 1, 0) - t4R_2(0, 1, 1, 0)),
545 "T4R - T4R (0,1,1,0)");
546 test_for_zero(t4R_3(0, 1, 1, 1) - (t4R_1(0, 1, 1, 1) - t4R_2(0, 1, 1, 1)),
547 "T4R - T4R (0,1,1,1)");
548 test_for_zero(t4R_3(0, 1, 1, 2) - (t4R_1(0, 1, 1, 2) - t4R_2(0, 1, 1, 2)),
549 "T4R - T4R (0,1,1,2)");
550 test_for_zero(t4R_3(0, 1, 2, 0) - (t4R_1(0, 1, 2, 0) - t4R_2(0, 1, 2, 0)),
551 "T4R - T4R (0,1,2,0)");
552 test_for_zero(t4R_3(0, 1, 2, 1) - (t4R_1(0, 1, 2, 1) - t4R_2(0, 1, 2, 1)),
553 "T4R - T4R (0,1,2,1)");
554 test_for_zero(t4R_3(0, 1, 2, 2) - (t4R_1(0, 1, 2, 2) - t4R_2(0, 1, 2, 2)),
555 "T4R - T4R (0,1,2,2)");
556 test_for_zero(t4R_3(0, 2, 0, 0) - (t4R_1(0, 2, 0, 0) - t4R_2(0, 2, 0, 0)),
557 "T4R - T4R (0,2,0,0)");
558 test_for_zero(t4R_3(0, 2, 0, 1) - (t4R_1(0, 2, 0, 1) - t4R_2(0, 2, 0, 1)),
559 "T4R - T4R (0,2,0,1)");
560 test_for_zero(t4R_3(0, 2, 0, 2) - (t4R_1(0, 2, 0, 2) - t4R_2(0, 2, 0, 2)),
561 "T4R - T4R (0,2,0,2)");
562 test_for_zero(t4R_3(0, 2, 1, 0) - (t4R_1(0, 2, 1, 0) - t4R_2(0, 2, 1, 0)),
563 "T4R - T4R (0,2,1,0)");
564 test_for_zero(t4R_3(0, 2, 1, 1) - (t4R_1(0, 2, 1, 1) - t4R_2(0, 2, 1, 1)),
565 "T4R - T4R (0,2,1,1)");
566 test_for_zero(t4R_3(0, 2, 1, 2) - (t4R_1(0, 2, 1, 2) - t4R_2(0, 2, 1, 2)),
567 "T4R - T4R (0,2,1,2)");
568 test_for_zero(t4R_3(0, 2, 2, 0) - (t4R_1(0, 2, 2, 0) - t4R_2(0, 2, 2, 0)),
569 "T4R - T4R (0,2,2,0)");
570 test_for_zero(t4R_3(0, 2, 2, 1) - (t4R_1(0, 2, 2, 1) - t4R_2(0, 2, 2, 1)),
571 "T4R - T4R (0,2,2,1)");
572 test_for_zero(t4R_3(0, 2, 2, 2) - (t4R_1(0, 2, 2, 2) - t4R_2(0, 2, 2, 2)),
573 "T4R - T4R (0,2,2,2)");
574 test_for_zero(t4R_3(1, 0, 0, 0) - (t4R_1(1, 0, 0, 0) - t4R_2(1, 0, 0, 0)),
575 "T4R - T4R (1,0,0,0)");
576 test_for_zero(t4R_3(1, 0, 0, 1) - (t4R_1(1, 0, 0, 1) - t4R_2(1, 0, 0, 1)),
577 "T4R - T4R (1,0,0,1)");
578 test_for_zero(t4R_3(1, 0, 0, 2) - (t4R_1(1, 0, 0, 2) - t4R_2(1, 0, 0, 2)),
579 "T4R - T4R (1,0,0,2)");
580 test_for_zero(t4R_3(1, 0, 1, 0) - (t4R_1(1, 0, 1, 0) - t4R_2(1, 0, 1, 0)),
581 "T4R - T4R (1,0,1,0)");
582 test_for_zero(t4R_3(1, 0, 1, 1) - (t4R_1(1, 0, 1, 1) - t4R_2(1, 0, 1, 1)),
583 "T4R - T4R (1,0,1,1)");
584 test_for_zero(t4R_3(1, 0, 1, 2) - (t4R_1(1, 0, 1, 2) - t4R_2(1, 0, 1, 2)),
585 "T4R - T4R (1,0,1,2)");
586 test_for_zero(t4R_3(1, 0, 2, 0) - (t4R_1(1, 0, 2, 0) - t4R_2(1, 0, 2, 0)),
587 "T4R - T4R (1,0,2,0)");
588 test_for_zero(t4R_3(1, 0, 2, 1) - (t4R_1(1, 0, 2, 1) - t4R_2(1, 0, 2, 1)),
589 "T4R - T4R (1,0,2,1)");
590 test_for_zero(t4R_3(1, 0, 2, 2) - (t4R_1(1, 0, 2, 2) - t4R_2(1, 0, 2, 2)),
591 "T4R - T4R (1,0,2,2)");
592 test_for_zero(t4R_3(1, 1, 0, 0) - (t4R_1(1, 1, 0, 0) - t4R_2(1, 1, 0, 0)),
593 "T4R - T4R (1,1,0,0)");
594 test_for_zero(t4R_3(1, 1, 0, 1) - (t4R_1(1, 1, 0, 1) - t4R_2(1, 1, 0, 1)),
595 "T4R - T4R (1,1,0,1)");
596 test_for_zero(t4R_3(1, 1, 0, 2) - (t4R_1(1, 1, 0, 2) - t4R_2(1, 1, 0, 2)),
597 "T4R - T4R (1,1,0,2)");
598 test_for_zero(t4R_3(1, 1, 1, 0) - (t4R_1(1, 1, 1, 0) - t4R_2(1, 1, 1, 0)),
599 "T4R - T4R (1,1,1,0)");
600 test_for_zero(t4R_3(1, 1, 1, 1) - (t4R_1(1, 1, 1, 1) - t4R_2(1, 1, 1, 1)),
601 "T4R - T4R (1,1,1,1)");
602 test_for_zero(t4R_3(1, 1, 1, 2) - (t4R_1(1, 1, 1, 2) - t4R_2(1, 1, 1, 2)),
603 "T4R - T4R (1,1,1,2)");
604 test_for_zero(t4R_3(1, 1, 2, 0) - (t4R_1(1, 1, 2, 0) - t4R_2(1, 1, 2, 0)),
605 "T4R - T4R (1,1,2,0)");
606 test_for_zero(t4R_3(1, 1, 2, 1) - (t4R_1(1, 1, 2, 1) - t4R_2(1, 1, 2, 1)),
607 "T4R - T4R (1,1,2,1)");
608 test_for_zero(t4R_3(1, 1, 2, 2) - (t4R_1(1, 1, 2, 2) - t4R_2(1, 1, 2, 2)),
609 "T4R - T4R (1,1,2,2)");
610 test_for_zero(t4R_3(1, 2, 0, 0) - (t4R_1(1, 2, 0, 0) - t4R_2(1, 2, 0, 0)),
611 "T4R - T4R (1,2,0,0)");
612 test_for_zero(t4R_3(1, 2, 0, 1) - (t4R_1(1, 2, 0, 1) - t4R_2(1, 2, 0, 1)),
613 "T4R - T4R (1,2,0,1)");
614 test_for_zero(t4R_3(1, 2, 0, 2) - (t4R_1(1, 2, 0, 2) - t4R_2(1, 2, 0, 2)),
615 "T4R - T4R (1,2,0,2)");
616 test_for_zero(t4R_3(1, 2, 1, 0) - (t4R_1(1, 2, 1, 0) - t4R_2(1, 2, 1, 0)),
617 "T4R - T4R (1,2,1,0)");
618 test_for_zero(t4R_3(1, 2, 1, 1) - (t4R_1(1, 2, 1, 1) - t4R_2(1, 2, 1, 1)),
619 "T4R - T4R (1,2,1,1)");
620 test_for_zero(t4R_3(1, 2, 1, 2) - (t4R_1(1, 2, 1, 2) - t4R_2(1, 2, 1, 2)),
621 "T4R - T4R (1,2,1,2)");
622 test_for_zero(t4R_3(1, 2, 2, 0) - (t4R_1(1, 2, 2, 0) - t4R_2(1, 2, 2, 0)),
623 "T4R - T4R (1,2,2,0)");
624 test_for_zero(t4R_3(1, 2, 2, 1) - (t4R_1(1, 2, 2, 1) - t4R_2(1, 2, 2, 1)),
625 "T4R - T4R (1,2,2,1)");
626 test_for_zero(t4R_3(1, 2, 2, 2) - (t4R_1(1, 2, 2, 2) - t4R_2(1, 2, 2, 2)),
627 "T4R - T4R (1,2,2,2)");
628 test_for_zero(t4R_3(2, 0, 0, 0) - (t4R_1(2, 0, 0, 0) - t4R_2(2, 0, 0, 0)),
629 "T4R - T4R (2,0,0,0)");
630 test_for_zero(t4R_3(2, 0, 0, 1) - (t4R_1(2, 0, 0, 1) - t4R_2(2, 0, 0, 1)),
631 "T4R - T4R (2,0,0,1)");
632 test_for_zero(t4R_3(2, 0, 0, 2) - (t4R_1(2, 0, 0, 2) - t4R_2(2, 0, 0, 2)),
633 "T4R - T4R (2,0,0,2)");
634 test_for_zero(t4R_3(2, 0, 1, 0) - (t4R_1(2, 0, 1, 0) - t4R_2(2, 0, 1, 0)),
635 "T4R - T4R (2,0,1,0)");
636 test_for_zero(t4R_3(2, 0, 1, 1) - (t4R_1(2, 0, 1, 1) - t4R_2(2, 0, 1, 1)),
637 "T4R - T4R (2,0,1,1)");
638 test_for_zero(t4R_3(2, 0, 1, 2) - (t4R_1(2, 0, 1, 2) - t4R_2(2, 0, 1, 2)),
639 "T4R - T4R (2,0,1,2)");
640 test_for_zero(t4R_3(2, 0, 2, 0) - (t4R_1(2, 0, 2, 0) - t4R_2(2, 0, 2, 0)),
641 "T4R - T4R (2,0,2,0)");
642 test_for_zero(t4R_3(2, 0, 2, 1) - (t4R_1(2, 0, 2, 1) - t4R_2(2, 0, 2, 1)),
643 "T4R - T4R (2,0,2,1)");
644 test_for_zero(t4R_3(2, 0, 2, 2) - (t4R_1(2, 0, 2, 2) - t4R_2(2, 0, 2, 2)),
645 "T4R - T4R (2,0,2,2)");
646 test_for_zero(t4R_3(2, 1, 0, 0) - (t4R_1(2, 1, 0, 0) - t4R_2(2, 1, 0, 0)),
647 "T4R - T4R (2,1,0,0)");
648 test_for_zero(t4R_3(2, 1, 0, 1) - (t4R_1(2, 1, 0, 1) - t4R_2(2, 1, 0, 1)),
649 "T4R - T4R (2,1,0,1)");
650 test_for_zero(t4R_3(2, 1, 0, 2) - (t4R_1(2, 1, 0, 2) - t4R_2(2, 1, 0, 2)),
651 "T4R - T4R (2,1,0,2)");
652 test_for_zero(t4R_3(2, 1, 1, 0) - (t4R_1(2, 1, 1, 0) - t4R_2(2, 1, 1, 0)),
653 "T4R - T4R (2,1,1,0)");
654 test_for_zero(t4R_3(2, 1, 1, 1) - (t4R_1(2, 1, 1, 1) - t4R_2(2, 1, 1, 1)),
655 "T4R - T4R (2,1,1,1)");
656 test_for_zero(t4R_3(2, 1, 1, 2) - (t4R_1(2, 1, 1, 2) - t4R_2(2, 1, 1, 2)),
657 "T4R - T4R (2,1,1,2)");
658 test_for_zero(t4R_3(2, 1, 2, 0) - (t4R_1(2, 1, 2, 0) - t4R_2(2, 1, 2, 0)),
659 "T4R - T4R (2,1,2,0)");
660 test_for_zero(t4R_3(2, 1, 2, 1) - (t4R_1(2, 1, 2, 1) - t4R_2(2, 1, 2, 1)),
661 "T4R - T4R (2,1,2,1)");
662 test_for_zero(t4R_3(2, 1, 2, 2) - (t4R_1(2, 1, 2, 2) - t4R_2(2, 1, 2, 2)),
663 "T4R - T4R (2,1,2,2)");
664 test_for_zero(t4R_3(2, 2, 0, 0) - (t4R_1(2, 2, 0, 0) - t4R_2(2, 2, 0, 0)),
665 "T4R - T4R (2,2,0,0)");
666 test_for_zero(t4R_3(2, 2, 0, 1) - (t4R_1(2, 2, 0, 1) - t4R_2(2, 2, 0, 1)),
667 "T4R - T4R (2,2,0,1)");
668 test_for_zero(t4R_3(2, 2, 0, 2) - (t4R_1(2, 2, 0, 2) - t4R_2(2, 2, 0, 2)),
669 "T4R - T4R (2,2,0,2)");
670 test_for_zero(t4R_3(2, 2, 1, 0) - (t4R_1(2, 2, 1, 0) - t4R_2(2, 2, 1, 0)),
671 "T4R - T4R (2,2,1,0)");
672 test_for_zero(t4R_3(2, 2, 1, 1) - (t4R_1(2, 2, 1, 1) - t4R_2(2, 2, 1, 1)),
673 "T4R - T4R (2,2,1,1)");
674 test_for_zero(t4R_3(2, 2, 1, 2) - (t4R_1(2, 2, 1, 2) - t4R_2(2, 2, 1, 2)),
675 "T4R - T4R (2,2,1,2)");
676 test_for_zero(t4R_3(2, 2, 2, 0) - (t4R_1(2, 2, 2, 0) - t4R_2(2, 2, 2, 0)),
677 "T4R - T4R (2,2,2,0)");
678 test_for_zero(t4R_3(2, 2, 2, 1) - (t4R_1(2, 2, 2, 1) - t4R_2(2, 2, 2, 1)),
679 "T4R - T4R (2,2,2,1)");
680 test_for_zero(t4R_3(2, 2, 2, 2) - (t4R_1(2, 2, 2, 2) - t4R_2(2, 2, 2, 2)),
681 "T4R - T4R (2,2,2,2)");