16 t4ddg_3_1(
i,
j,
k,
l) = t2s_2(
i,
j) * t2s_3(
k,
l);
17 t4ddg_3_2(
i,
j,
k,
l) = t2s_3(
i,
j) * t2s_2(
k,
l);
18 t4ddg_3_3(
i,
j,
k,
l) = t4ddg_3_1(
i,
j,
k,
l);
19 t4ddg_3_3(
i,
j,
k,
l) += t4ddg_3_2(
i,
j,
k,
l);
21 for (
int ii = 0; ii != 3; ++ii)
22 for (
int jj = 0; jj != 3; ++jj)
23 for (
int kk = 0; kk != 3; ++kk)
24 for (
int ll = 0; ll != 3; ++ll) {
26 t4ddg_3_1(ii, jj, kk, ll) -
27 t4ddg_3_2(ii, jj, kk, ll),
28 "T4ddg(i,j,k,l)+=T4ddg(i,j,k,l)(" + to_string(ii) +
29 "," + to_string(jj) +
"," + to_string(kk) +
"," +
34 t4ddg_3_4(
i,
j,
k,
l) = t4ddg_3_3(
i,
j,
k,
l);
35 t4ddg_3_4(
i,
j,
k,
l) -= t4ddg_3_3(
i,
j,
k,
l);
36 for (
int ii = 0; ii != 3; ++ii)
37 for (
int jj = 0; jj != 3; ++jj)
38 for (
int kk = 0; kk != 3; ++kk)
39 for (
int ll = 0; ll != 3; ++ll) {
41 "T4ddg(i,j,k,l)-=T4ddg(i,j,k,l)(" + to_string(ii) +
42 "," + to_string(jj) +
"," + to_string(kk) +
"," +
49 t4ddg_3_1(
i,
j,
k,
l) = t2s_2(
i,
j) * t2s_3(
k,
l);
50 t4ddg_3_2(
i,
j,
k,
l) = t4ddg_3_1(
i,
j,
k,
l);
51 t4ddg_3_1(
i,
j,
k,
l) *= 2.;
52 for (
int ii = 0; ii != 3; ++ii)
53 for (
int jj = 0; jj != 3; ++jj)
54 for (
int kk = 0; kk != 3; ++kk)
55 for (
int ll = 0; ll != 3; ++ll) {
57 t4ddg_3_1(ii, jj, kk, ll) - 2 * t4ddg_3_2(ii, jj, kk, ll),
58 "T4ddg(i,j,k,l)*=2(" + to_string(ii) +
"," + to_string(jj) +
59 "," + to_string(kk) +
"," + to_string(ll) +
")");
65 t4ddg_3_1(
i,
j,
k,
l) = t2s_2(
i,
j) * t2s_3(
k,
l);
68 for (
int ii = 0; ii != 3; ++ii)
69 for (
int jj = 0; jj != 3; ++jj)
70 t2(ii, jj) = 1 + ii + 10 * jj;
73 t2_1(
i,
k) = t4ddg_3_1(
i,
j,
k,
l) * t2(
j,
l);
74 t2_2(
i,
k) = t2s_2(
i,
j) * (t2s_3(
k,
l) * t2(
j,
l));
76 for (
int ii = 0; ii != 3; ++ii)
77 for (
int jj = 0; jj != 3; ++jj) {
78 test_for_zero(t2_1(ii, jj) - t2_2(ii, jj),
"T4ddg(i,j,k,l)*T2(j,l)(" +
86 t4ddg_3_1(
i,
j,
k,
l) = t2s_2(
i,
j) * t2s_3(
k,
l);
89 for (
int ii = 0; ii != 3; ++ii)
90 for (
int jj = 0; jj != 3; ++jj)
91 t2(ii, jj) = 1 + ii + 10 * jj;
94 t2s_1(
k,
l) = t4ddg_3_1(
i,
j,
k,
l) * t2(
i,
j);
97 for (
int kk = 0; kk != 3; ++kk)
98 for (
int ll = kk; ll != 3; ++ll)
99 for (
int ii = 0; ii != 3; ++ii)
100 for (
int jj = 0; jj != 3; ++jj)
101 t2s_4(kk, ll) += t2s_3(kk, ll) * (t2s_2(ii, jj) * t2(ii, jj));
103 for (
int ii = 0; ii != 3; ++ii)
104 for (
int jj = 0; jj != 3; ++jj) {
105 test_for_zero(t2s_1(ii, jj) - t2s_4(ii, jj),
"T4ddg(i,j,k,l)*T2(i,j)(" +
106 to_string(ii) +
"," +
107 to_string(jj) +
")");