1 #include "../../src/FTensor.hpp"
31 t2s_1(
i,
j) = t3ch_1(N0,
i,
j);
32 test_for_zero(t3ch_1(0, 0, 0) - t2s_1(0, 0),
"T3ch(N,i,j)(0,0,0)");
33 test_for_zero(t3ch_1(0, 0, 1) - t2s_1(0, 1),
"T3ch(N,i,j)(0,0,1)");
34 test_for_zero(t3ch_1(0, 0, 2) - t2s_1(0, 2),
"T3ch(N,i,j)(0,0,2)");
35 test_for_zero(t3ch_1(0, 1, 1) - t2s_1(1, 1),
"T3ch(N,i,j)(0,1,1)");
36 test_for_zero(t3ch_1(0, 1, 2) - t2s_1(1, 2),
"T3ch(N,i,j)(0,1,2)");
37 test_for_zero(t3ch_1(0, 2, 2) - t2s_1(2, 2),
"T3ch(N,i,j)(0,2,2)");
38 t2s_1(
i,
j) = t3ch_1(N1,
i,
j);
39 test_for_zero(t3ch_1(1, 0, 0) - t2s_1(0, 0),
"T3ch(N,i,j)(1,0,0)");
40 test_for_zero(t3ch_1(1, 0, 1) - t2s_1(0, 1),
"T3ch(N,i,j)(1,0,1)");
41 test_for_zero(t3ch_1(1, 0, 2) - t2s_1(0, 2),
"T3ch(N,i,j)(1,0,2)");
42 test_for_zero(t3ch_1(1, 1, 1) - t2s_1(1, 1),
"T3ch(N,i,j)(1,1,1)");
43 test_for_zero(t3ch_1(1, 1, 2) - t2s_1(1, 2),
"T3ch(N,i,j)(1,1,2)");
44 test_for_zero(t3ch_1(1, 2, 2) - t2s_1(2, 2),
"T3ch(N,i,j)(1,2,2)");
45 t2s_1(
i,
j) = t3ch_1(N2,
i,
j);
46 test_for_zero(t3ch_1(2, 0, 0) - t2s_1(0, 0),
"T3ch(N,i,j)(2,0,0)");
47 test_for_zero(t3ch_1(2, 0, 1) - t2s_1(0, 1),
"T3ch(N,i,j)(2,0,1)");
48 test_for_zero(t3ch_1(2, 0, 2) - t2s_1(0, 2),
"T3ch(N,i,j)(2,0,2)");
49 test_for_zero(t3ch_1(2, 1, 1) - t2s_1(1, 1),
"T3ch(N,i,j)(2,1,1)");
50 test_for_zero(t3ch_1(2, 1, 2) - t2s_1(1, 2),
"T3ch(N,i,j)(2,1,2)");
51 test_for_zero(t3ch_1(2, 2, 2) - t2s_1(2, 2),
"T3ch(N,i,j)(2,2,2)");
55 t1_1(
i) = t3ch_1(
i, N0, N0);
56 test_for_zero(t3ch_1(0, 0, 0) - t1_1(0),
"T3ch(i,N,N)(0,0,0)");
57 test_for_zero(t3ch_1(1, 0, 0) - t1_1(1),
"T3ch(i,N,N)(1,0,0)");
58 test_for_zero(t3ch_1(2, 0, 0) - t1_1(2),
"T3ch(i,N,N)(2,0,0)");
59 t1_1(
i) = t3ch_1(
i, N0, N1);
60 test_for_zero(t3ch_1(0, 0, 1) - t1_1(0),
"T3ch(i,N,N)(0,0,1)");
61 test_for_zero(t3ch_1(1, 0, 1) - t1_1(1),
"T3ch(i,N,N)(1,0,1)");
62 test_for_zero(t3ch_1(2, 0, 1) - t1_1(2),
"T3ch(i,N,N)(2,0,1)");
63 t1_1(
i) = t3ch_1(
i, N0, N2);
64 test_for_zero(t3ch_1(0, 0, 2) - t1_1(0),
"T3ch(i,N,N)(0,0,2)");
65 test_for_zero(t3ch_1(1, 0, 2) - t1_1(1),
"T3ch(i,N,N)(1,0,2)");
66 test_for_zero(t3ch_1(2, 0, 2) - t1_1(2),
"T3ch(i,N,N)(2,0,2)");
67 t1_1(
i) = t3ch_1(
i, N1, N0);
68 test_for_zero(t3ch_1(0, 1, 0) - t1_1(0),
"T3ch(i,N,N)(0,1,0)");
69 test_for_zero(t3ch_1(1, 1, 0) - t1_1(1),
"T3ch(i,N,N)(1,1,0)");
70 test_for_zero(t3ch_1(2, 1, 0) - t1_1(2),
"T3ch(i,N,N)(2,1,0)");
71 t1_1(
i) = t3ch_1(
i, N1, N1);
72 test_for_zero(t3ch_1(0, 1, 1) - t1_1(0),
"T3ch(i,N,N)(0,1,1)");
73 test_for_zero(t3ch_1(1, 1, 1) - t1_1(1),
"T3ch(i,N,N)(1,1,1)");
74 test_for_zero(t3ch_1(2, 1, 1) - t1_1(2),
"T3ch(i,N,N)(2,1,1)");
75 t1_1(
i) = t3ch_1(
i, N1, N2);
76 test_for_zero(t3ch_1(0, 1, 2) - t1_1(0),
"T3ch(i,N,N)(0,1,2)");
77 test_for_zero(t3ch_1(1, 1, 2) - t1_1(1),
"T3ch(i,N,N)(1,1,2)");
78 test_for_zero(t3ch_1(2, 1, 2) - t1_1(2),
"T3ch(i,N,N)(2,1,2)");
79 t1_1(
i) = t3ch_1(
i, N2, N0);
80 test_for_zero(t3ch_1(0, 2, 0) - t1_1(0),
"T3ch(i,N,N)(0,2,0)");
81 test_for_zero(t3ch_1(1, 2, 0) - t1_1(1),
"T3ch(i,N,N)(1,2,0)");
82 test_for_zero(t3ch_1(2, 2, 0) - t1_1(2),
"T3ch(i,N,N)(2,2,0)");
83 t1_1(
i) = t3ch_1(
i, N2, N1);
84 test_for_zero(t3ch_1(0, 2, 1) - t1_1(0),
"T3ch(i,N,N)(0,2,1)");
85 test_for_zero(t3ch_1(1, 2, 1) - t1_1(1),
"T3ch(i,N,N)(1,2,1)");
86 test_for_zero(t3ch_1(2, 2, 1) - t1_1(2),
"T3ch(i,N,N)(2,2,1)");
87 t1_1(
i) = t3ch_1(
i, N2, N2);
88 test_for_zero(t3ch_1(0, 2, 2) - t1_1(0),
"T3ch(i,N,N)(0,2,2)");
89 test_for_zero(t3ch_1(1, 2, 2) - t1_1(1),
"T3ch(i,N,N)(1,2,2)");
90 test_for_zero(t3ch_1(2, 2, 2) - t1_1(2),
"T3ch(i,N,N)(2,2,2)");
94 t2s_1(
i,
j) = t3ch_2(0,
i,
j);
95 test_for_zero(t3ch_2(0, 0, 0) - t2s_1(0, 0),
"T3ch(Num,i,j)(0,0,0)");
96 test_for_zero(t3ch_2(0, 0, 1) - t2s_1(0, 1),
"T3ch(Num,i,j)(0,0,1)");
97 test_for_zero(t3ch_2(0, 0, 2) - t2s_1(0, 2),
"T3ch(Num,i,j)(0,0,2)");
98 test_for_zero(t3ch_2(0, 1, 0) - t2s_1(1, 0),
"T3ch(Num,i,j)(0,1,0)");
99 test_for_zero(t3ch_2(0, 1, 1) - t2s_1(1, 1),
"T3ch(Num,i,j)(0,1,1)");
100 test_for_zero(t3ch_2(0, 1, 2) - t2s_1(1, 2),
"T3ch(Num,i,j)(0,1,2)");
101 test_for_zero(t3ch_2(0, 2, 0) - t2s_1(2, 0),
"T3ch(Num,i,j)(0,2,0)");
102 test_for_zero(t3ch_2(0, 2, 1) - t2s_1(2, 1),
"T3ch(Num,i,j)(0,2,1)");
103 test_for_zero(t3ch_2(0, 2, 2) - t2s_1(2, 2),
"T3ch(Num,i,j)(0,2,2)");
105 t2s_1(
i,
j) = t3ch_2(1,
i,
j);
106 test_for_zero(t3ch_2(1, 0, 0) - t2s_1(0, 0),
"T3ch(Num,i,j)(1,0,0)");
107 test_for_zero(t3ch_2(1, 0, 1) - t2s_1(0, 1),
"T3ch(Num,i,j)(1,0,1)");
108 test_for_zero(t3ch_2(1, 0, 2) - t2s_1(0, 2),
"T3ch(Num,i,j)(1,0,2)");
109 test_for_zero(t3ch_2(1, 1, 0) - t2s_1(1, 0),
"T3ch(Num,i,j)(1,1,0)");
110 test_for_zero(t3ch_2(1, 1, 1) - t2s_1(1, 1),
"T3ch(Num,i,j)(1,1,1)");
111 test_for_zero(t3ch_2(1, 1, 2) - t2s_1(1, 2),
"T3ch(Num,i,j)(1,1,2)");
112 test_for_zero(t3ch_2(1, 2, 0) - t2s_1(2, 0),
"T3ch(Num,i,j)(1,2,0)");
113 test_for_zero(t3ch_2(1, 2, 1) - t2s_1(2, 1),
"T3ch(Num,i,j)(1,2,1)");
114 test_for_zero(t3ch_2(1, 2, 2) - t2s_1(2, 2),
"T3ch(Num,i,j)(1,2,2)");
116 t2s_1(
i,
j) = t3ch_2(2,
i,
j);
117 test_for_zero(t3ch_2(2, 0, 0) - t2s_1(0, 0),
"T3ch(Num,i,j)(2,0,0)");
118 test_for_zero(t3ch_2(2, 0, 1) - t2s_1(0, 1),
"T3ch(Num,i,j)(2,0,1)");
119 test_for_zero(t3ch_2(2, 0, 2) - t2s_1(0, 2),
"T3ch(Num,i,j)(2,0,2)");
120 test_for_zero(t3ch_2(2, 1, 0) - t2s_1(1, 0),
"T3ch(Num,i,j)(2,1,0)");
121 test_for_zero(t3ch_2(2, 1, 1) - t2s_1(1, 1),
"T3ch(Num,i,j)(2,1,1)");
122 test_for_zero(t3ch_2(2, 1, 2) - t2s_1(1, 2),
"T3ch(Num,i,j)(2,1,2)");
123 test_for_zero(t3ch_2(2, 2, 0) - t2s_1(2, 0),
"T3ch(Num,i,j)(2,2,0)");
124 test_for_zero(t3ch_2(2, 2, 1) - t2s_1(2, 1),
"T3ch(Num,i,j)(2,2,1)");
125 test_for_zero(t3ch_2(2, 2, 2) - t2s_1(2, 2),
"T3ch(Num,i,j)(2,2,2)");
127 t2_1(
i,
j) = t3ch_2(
j, 0,
i);
128 test_for_zero(t3ch_2(0, 0, 0) - t2_1(0, 0),
"T3ch(j,Num,i)(0,0,0)");
129 test_for_zero(t3ch_2(1, 0, 0) - t2_1(0, 1),
"T3ch(j,Num,i)(0,0,1)");
130 test_for_zero(t3ch_2(2, 0, 0) - t2_1(0, 2),
"T3ch(j,Num,i)(0,0,2)");
131 test_for_zero(t3ch_2(0, 0, 1) - t2_1(1, 0),
"T3ch(j,Num,i)(0,1,0)");
132 test_for_zero(t3ch_2(1, 0, 1) - t2_1(1, 1),
"T3ch(j,Num,i)(0,1,1)");
133 test_for_zero(t3ch_2(2, 0, 1) - t2_1(1, 2),
"T3ch(j,Num,i)(0,1,2)");
134 test_for_zero(t3ch_2(0, 0, 2) - t2_1(2, 0),
"T3ch(j,Num,i)(0,2,0)");
135 test_for_zero(t3ch_2(1, 0, 2) - t2_1(2, 1),
"T3ch(j,Num,i)(0,2,1)");
136 test_for_zero(t3ch_2(2, 0, 2) - t2_1(2, 2),
"T3ch(j,Num,i)(0,2,2)");
138 t2_1(
i,
j) = t3ch_2(
j, 1,
i);
139 test_for_zero(t3ch_2(0, 1, 0) - t2_1(0, 0),
"T3ch(j,Num,i)(1,0,0)");
140 test_for_zero(t3ch_2(1, 1, 0) - t2_1(0, 1),
"T3ch(j,Num,i)(1,0,1)");
141 test_for_zero(t3ch_2(2, 1, 0) - t2_1(0, 2),
"T3ch(j,Num,i)(1,0,2)");
142 test_for_zero(t3ch_2(0, 1, 1) - t2_1(1, 0),
"T3ch(j,Num,i)(1,1,0)");
143 test_for_zero(t3ch_2(1, 1, 1) - t2_1(1, 1),
"T3ch(j,Num,i)(1,1,1)");
144 test_for_zero(t3ch_2(2, 1, 1) - t2_1(1, 2),
"T3ch(j,Num,i)(1,1,2)");
145 test_for_zero(t3ch_2(0, 1, 2) - t2_1(2, 0),
"T3ch(j,Num,i)(1,2,0)");
146 test_for_zero(t3ch_2(1, 1, 2) - t2_1(2, 1),
"T3ch(j,Num,i)(1,2,1)");
147 test_for_zero(t3ch_2(2, 1, 2) - t2_1(2, 2),
"T3ch(j,Num,i)(1,2,2)");
149 t2_1(
i,
j) = t3ch_2(
j, 2,
i);
150 test_for_zero(t3ch_2(0, 2, 0) - t2_1(0, 0),
"T3ch(j,Num,i)(2,0,0)");
151 test_for_zero(t3ch_2(1, 2, 0) - t2_1(0, 1),
"T3ch(j,Num,i)(2,0,1)");
152 test_for_zero(t3ch_2(2, 2, 0) - t2_1(0, 2),
"T3ch(j,Num,i)(2,0,2)");
153 test_for_zero(t3ch_2(0, 2, 1) - t2_1(1, 0),
"T3ch(j,Num,i)(2,1,0)");
154 test_for_zero(t3ch_2(1, 2, 1) - t2_1(1, 1),
"T3ch(j,Num,i)(2,1,1)");
155 test_for_zero(t3ch_2(2, 2, 1) - t2_1(1, 2),
"T3ch(j,Num,i)(2,1,2)");
156 test_for_zero(t3ch_2(0, 2, 2) - t2_1(2, 0),
"T3ch(j,Num,i)(2,2,0)");
157 test_for_zero(t3ch_2(1, 2, 2) - t2_1(2, 1),
"T3ch(j,Num,i)(2,2,1)");
158 test_for_zero(t3ch_2(2, 2, 2) - t2_1(2, 2),
"T3ch(j,Num,i)(2,2,2)");
160 t2_1(
i,
j) = t3ch_2(
j,
i, 0);
161 test_for_zero(t3ch_2(0, 0, 0) - t2_1(0, 0),
"T3ch(j,i,Num)(0,0,0)");
162 test_for_zero(t3ch_2(1, 0, 0) - t2_1(0, 1),
"T3ch(j,i,Num)(0,0,1)");
163 test_for_zero(t3ch_2(2, 0, 0) - t2_1(0, 2),
"T3ch(j,i,Num)(0,0,2)");
164 test_for_zero(t3ch_2(0, 1, 0) - t2_1(1, 0),
"T3ch(j,i,Num)(0,1,0)");
165 test_for_zero(t3ch_2(1, 1, 0) - t2_1(1, 1),
"T3ch(j,i,Num)(0,1,1)");
166 test_for_zero(t3ch_2(2, 1, 0) - t2_1(1, 2),
"T3ch(j,i,Num)(0,1,2)");
167 test_for_zero(t3ch_2(0, 2, 0) - t2_1(2, 0),
"T3ch(j,i,Num)(0,2,0)");
168 test_for_zero(t3ch_2(1, 2, 0) - t2_1(2, 1),
"T3ch(j,i,Num)(0,2,1)");
169 test_for_zero(t3ch_2(2, 2, 0) - t2_1(2, 2),
"T3ch(j,i,Num)(0,2,2)");
171 t2_1(
i,
j) = t3ch_2(
j,
i, 1);
172 test_for_zero(t3ch_2(0, 0, 1) - t2_1(0, 0),
"T3ch(j,i,Num)(1,0,0)");
173 test_for_zero(t3ch_2(1, 0, 1) - t2_1(0, 1),
"T3ch(j,i,Num)(1,0,1)");
174 test_for_zero(t3ch_2(2, 0, 1) - t2_1(0, 2),
"T3ch(j,i,Num)(1,0,2)");
175 test_for_zero(t3ch_2(0, 1, 1) - t2_1(1, 0),
"T3ch(j,i,Num)(1,1,0)");
176 test_for_zero(t3ch_2(1, 1, 1) - t2_1(1, 1),
"T3ch(j,i,Num)(1,1,1)");
177 test_for_zero(t3ch_2(2, 1, 1) - t2_1(1, 2),
"T3ch(j,i,Num)(1,1,2)");
178 test_for_zero(t3ch_2(0, 2, 1) - t2_1(2, 0),
"T3ch(j,i,Num)(1,2,0)");
179 test_for_zero(t3ch_2(1, 2, 1) - t2_1(2, 1),
"T3ch(j,i,Num)(1,2,1)");
180 test_for_zero(t3ch_2(2, 2, 1) - t2_1(2, 2),
"T3ch(j,i,Num)(1,2,2)");
182 t2_1(
i,
j) = t3ch_2(
j,
i, 2);
183 test_for_zero(t3ch_2(0, 0, 2) - t2_1(0, 0),
"T3ch(j,i,Num)(2,0,0)");
184 test_for_zero(t3ch_2(1, 0, 2) - t2_1(0, 1),
"T3ch(j,i,Num)(2,0,1)");
185 test_for_zero(t3ch_2(2, 0, 2) - t2_1(0, 2),
"T3ch(j,i,Num)(2,0,2)");
186 test_for_zero(t3ch_2(0, 1, 2) - t2_1(1, 0),
"T3ch(j,i,Num)(2,1,0)");
187 test_for_zero(t3ch_2(1, 1, 2) - t2_1(1, 1),
"T3ch(j,i,Num)(2,1,1)");
188 test_for_zero(t3ch_2(2, 1, 2) - t2_1(1, 2),
"T3ch(j,i,Num)(2,1,2)");
189 test_for_zero(t3ch_2(0, 2, 2) - t2_1(2, 0),
"T3ch(j,i,Num)(2,2,0)");
190 test_for_zero(t3ch_2(1, 2, 2) - t2_1(2, 1),
"T3ch(j,i,Num)(2,2,1)");
191 test_for_zero(t3ch_2(2, 2, 2) - t2_1(2, 2),
"T3ch(j,i,Num)(2,2,2)");
195 t3ch_1(
i,
j,
k) = 10;
224 t3ch_1(
i,
j,
k) = t3dg_2(
j,
k,
i);
226 "T3ch(i,j,k)=T3dg(j,k,i)(0,0,0)");
228 "T3ch(i,j,k)=T3dg(j,k,i)(0,0,1)");
230 "T3ch(i,j,k)=T3dg(j,k,i)(0,0,2)");
232 "T3ch(i,j,k)=T3dg(j,k,i)(0,1,0)");
234 "T3ch(i,j,k)=T3dg(j,k,i)(0,1,1)");
236 "T3ch(i,j,k)=T3dg(j,k,i)(0,1,2)");
238 "T3ch(i,j,k)=T3dg(j,k,i)(0,2,0)");
240 "T3ch(i,j,k)=T3dg(j,k,i)(0,2,1)");
242 "T3ch(i,j,k)=T3dg(j,k,i)(0,2,2)");
244 "T3ch(i,j,k)=T3dg(j,k,i)(1,0,0)");
246 "T3ch(i,j,k)=T3dg(j,k,i)(1,0,1)");
248 "T3ch(i,j,k)=T3dg(j,k,i)(1,0,2)");
250 "T3ch(i,j,k)=T3dg(j,k,i)(1,1,0)");
252 "T3ch(i,j,k)=T3dg(j,k,i)(1,1,1)");
254 "T3ch(i,j,k)=T3dg(j,k,i)(1,1,2)");
256 "T3ch(i,j,k)=T3dg(j,k,i)(1,2,0)");
258 "T3ch(i,j,k)=T3dg(j,k,i)(1,2,1)");
260 "T3ch(i,j,k)=T3dg(j,k,i)(1,2,2)");
262 "T3ch(i,j,k)=T3dg(j,k,i)(2,0,0)");
264 "T3ch(i,j,k)=T3dg(j,k,i)(2,0,1)");
266 "T3ch(i,j,k)=T3dg(j,k,i)(2,0,2)");
268 "T3ch(i,j,k)=T3dg(j,k,i)(2,1,0)");
270 "T3ch(i,j,k)=T3dg(j,k,i)(2,1,1)");
272 "T3ch(i,j,k)=T3dg(j,k,i)(2,1,2)");
274 "T3ch(i,j,k)=T3dg(j,k,i)(2,2,0)");
276 "T3ch(i,j,k)=T3dg(j,k,i)(2,2,1)");
278 "T3ch(i,j,k)=T3dg(j,k,i)(2,2,2)");
280 t3ch_1(
i,
j,
k) = t3ch_2(
i,
j,
k);
282 "T3ch(i,j,k)=T3ch(i,j,k)(0,0,0)");
284 "T3ch(i,j,k)=T3ch(i,j,k)(0,0,1)");
286 "T3ch(i,j,k)=T3ch(i,j,k)(0,0,2)");
288 "T3ch(i,j,k)=T3ch(i,j,k)(0,1,0)");
290 "T3ch(i,j,k)=T3ch(i,j,k)(0,1,1)");
292 "T3ch(i,j,k)=T3ch(i,j,k)(0,1,2)");
294 "T3ch(i,j,k)=T3ch(i,j,k)(0,2,0)");
296 "T3ch(i,j,k)=T3ch(i,j,k)(0,2,1)");
298 "T3ch(i,j,k)=T3ch(i,j,k)(0,2,2)");
300 "T3ch(i,j,k)=T3ch(i,j,k)(1,0,0)");
302 "T3ch(i,j,k)=T3ch(i,j,k)(1,0,1)");
304 "T3ch(i,j,k)=T3ch(i,j,k)(1,0,2)");
306 "T3ch(i,j,k)=T3ch(i,j,k)(1,1,0)");
308 "T3ch(i,j,k)=T3ch(i,j,k)(1,1,1)");
310 "T3ch(i,j,k)=T3ch(i,j,k)(1,1,2)");
312 "T3ch(i,j,k)=T3ch(i,j,k)(1,2,0)");
314 "T3ch(i,j,k)=T3ch(i,j,k)(1,2,1)");
316 "T3ch(i,j,k)=T3ch(i,j,k)(1,2,2)");
318 "T3ch(i,j,k)=T3ch(i,j,k)(2,0,0)");
320 "T3ch(i,j,k)=T3ch(i,j,k)(2,0,1)");
322 "T3ch(i,j,k)=T3ch(i,j,k)(2,0,2)");
324 "T3ch(i,j,k)=T3ch(i,j,k)(2,1,0)");
326 "T3ch(i,j,k)=T3ch(i,j,k)(2,1,1)");
328 "T3ch(i,j,k)=T3ch(i,j,k)(2,1,2)");
330 "T3ch(i,j,k)=T3ch(i,j,k)(2,2,0)");
332 "T3ch(i,j,k)=T3ch(i,j,k)(2,2,1)");
334 "T3ch(i,j,k)=T3ch(i,j,k)(2,2,2)");
336 t1_1(
i) = t3ch_1(
i,
j,
j);
338 - (t3ch_1(0, 0, 0) + t3ch_1(0, 1, 1) + t3ch_1(0, 2, 2)),
341 - (t3ch_1(1, 0, 0) + t3ch_1(1, 1, 1) + t3ch_1(1, 2, 2)),
344 - (t3ch_1(2, 0, 0) + t3ch_1(2, 1, 1) + t3ch_1(2, 2, 2)),
346 t1_1(
i) = t3ch_1(
j,
i,
j);
348 - (t3ch_1(0, 0, 0) + t3ch_1(1, 0, 1) + t3ch_1(2, 0, 2)),
351 - (t3ch_1(0, 1, 0) + t3ch_1(1, 1, 1) + t3ch_1(2, 1, 2)),
354 - (t3ch_1(0, 2, 0) + t3ch_1(1, 2, 1) + t3ch_1(2, 2, 2)),
356 t1_1(
i) = t3ch_1(
j,
j,
i);
358 - (t3ch_1(0, 0, 0) + t3ch_1(1, 1, 0) + t3ch_1(2, 2, 0)),
361 - (t3ch_1(0, 0, 1) + t3ch_1(1, 1, 1) + t3ch_1(2, 2, 1)),
364 - (t3ch_1(0, 0, 2) + t3ch_1(1, 1, 2) + t3ch_1(2, 2, 2)),