v0.14.0
test_T2s.cpp
Go to the documentation of this file.
1 #include "../../../src/FTensor.hpp"
2 #include "../test_for_zero.hpp"
3 #include <iostream>
4 using namespace FTensor;
5 using namespace std;
6 
7 void test_T2s_iostream();
8 void test_T2s_01(const Tensor1<double, 3> &t1_2,
10 void test_T2s_02(const Tensor1<double, 3> &t1_2,
12 void test_T2s_03(const Tensor2<double, 3, 3> &t2_2,
15  const Tensor2<double, 3, 3> &t2_2,
17 void test_T2s_05(const Tensor1<double, 3> &t1_2,
19 void test_T2s_06(const Tensor1<double, 3> &t1_2,
23 void test_T2s_08(Tensor1<double, 3> &t1_1, const Tensor1<double, 3> &t1_2,
24  const Tensor2_symmetric<double, 3> &t2s_1);
25 void test_T2s_09(const Tensor1<double, 3> &t1_2,
27  const Tensor2_symmetric<double, 3> &t2s_2);
28 void test_T2s_10(const Tensor1<double, 3> &t1_2,
30  const Tensor2_symmetric<double, 3> &t2s_2);
31 void test_T2s_11(const Tensor1<double, 3> &t1_2,
33  const Tensor2_symmetric<double, 3> &t2s_2);
34 void test_T2s_12(const Tensor1<double, 3> &t1_2,
36  const Tensor2_symmetric<double, 3> &t2s_2);
37 void test_T2s_13(const Tensor1<double, 3> &t1_2,
39  const Tensor2_symmetric<double, 3> &t2s_2);
40 void test_T2s_14(const Tensor1<double, 3> &t1_2,
42  const Tensor2_symmetric<double, 3> &t2s_2);
43 void test_T2s_15(const Tensor1<double, 3> &t1_2,
45  const Tensor2_symmetric<double, 3> &t2s_2);
46 void test_T2s_16(const Tensor1<double, 3> &t1_2,
48  const Tensor2_symmetric<double, 3> &t2s_2);
49 void test_T2s_17(const Tensor1<double, 3> &t1_2,
51  const Tensor2_symmetric<double, 3> &t2s_2);
52 void test_T2s_18(const Tensor1<double, 3> &t1_2,
54  const Tensor2_symmetric<double, 3> &t2s_2);
55 void test_T2s_19(const Tensor1<double, 3> &t1_2,
57  const Tensor2_symmetric<double, 3> &t2s_2);
58 void test_T2s_20(Tensor1<double, 3> &t1_1, const Tensor1<double, 3> &t1_2,
59  const Tensor2_symmetric<double, 3> &t2s_2);
60 void test_T2s_21(Tensor1<double, 3> &t1_1, const Tensor1<double, 3> &t1_2,
61  const Tensor2_symmetric<double, 3> &t2s_2);
63  const Tensor2_symmetric<double, 3> &t2s_2);
65  const Tensor2_symmetric<double, 3> &t2s_2,
66  const Tensor2_symmetric<double, 3> &t2s_3);
68  const Tensor2_symmetric<double, 3> &t2s_2,
69  const Tensor2_symmetric<double, 3> &t2s_3);
71  const Tensor2_symmetric<double, 3> &t2s_2,
72  const Tensor2_symmetric<double, 3> &t2s_3);
74  const Tensor2_symmetric<double, 3> &t2s_2,
75  const Tensor2_symmetric<double, 3> &t2s_3);
77  const Tensor2_symmetric<double, 3> &t2s_2);
79  const Tensor2_symmetric<double, 3> &t2s_2);
81  const Tensor2_symmetric<double, 3> &t2s_2);
83  const Tensor2<double, 3, 3> &t2_2,
84  const Tensor2_symmetric<double, 3> &t2s_2);
86  const Tensor2<double, 3, 3> &t2_2,
87  const Tensor2_symmetric<double, 3> &t2s_2);
89  const Tensor2<double, 3, 3> &t2_2,
90  const Tensor2_symmetric<double, 3> &t2s_2);
92  const Tensor2<double, 3, 3> &t2_2,
93  const Tensor2_symmetric<double, 3> &t2s_2);
94 void test_T2s_34(const Tensor1<double, 3> &t1_2,
96  const Tensor2_symmetric<double, 3> &t2s_2);
97 void test_T2s_35(const Tensor1<double, 3> &t1_2,
99  const Tensor2_symmetric<double, 3> &t2s_2);
100 void test_T2s_36(const Tensor2<double, 3, 3> &t2_2,
101  const Tensor2_symmetric<double, 3> &t2s_2);
103  const Tensor2<double, 3, 3> &t2_2,
104  const Tensor2_symmetric<double, 3> &t2s_2);
106  const Tensor2<double, 3, 3> &t2_2,
107  const Tensor2_symmetric<double, 3> &t2s_2);
109  const Tensor2<double, 3, 3> &t2_2,
110  const Tensor2_symmetric<double, 3> &t2s_2);
112  const Tensor2<double, 3, 3> &t2_2,
113  const Tensor2_symmetric<double, 3> &t2s_2);
116  const Tensor2_symmetric<double, 3> &t2s_2);
119  const Tensor2_symmetric<double, 3> &t2s_2);
122  const Tensor2_symmetric<double, 3> &t2s_2);
125  const Tensor2_symmetric<double, 3> &t2s_2);
126 void test_T2s_45(const Tensor1<double, 3> &t1_2,
128 void test_T2s_46(const Tensor1<double, 3> &t1_2,
130 void test_T2s_47(const Tensor2_symmetric<double, 3> &t1s_1,
131  const Tensor2_symmetric<double, 3> &t2s_2);
132 
134  Tensor2<double, 3, 3> &t2_1, const Tensor2<double, 3, 3> &t2_2,
136  const Tensor2_symmetric<double, 3> &t2s_2,
137  const Tensor2_symmetric<double, 3> &t2s_3)
138 {
140  test_T2s_01(t1_2, t2s_1);
141  test_T2s_02(t1_2, t2s_1);
142  test_T2s_03(t2_2, t2s_1);
143  test_T2s_04(t2_1, t2_2, t2s_1);
144  test_T2s_05(t1_2, t2s_1);
145  test_T2s_06(t1_2, t2s_1);
146  test_T2s_07(t1_1, t2s_1);
147  test_T2s_08(t1_1, t1_2, t2s_1);
148  test_T2s_09(t1_2, t2s_1, t2s_2);
149  test_T2s_10(t1_2, t2s_1, t2s_2);
150  test_T2s_11(t1_2, t2s_1, t2s_2);
151  test_T2s_12(t1_2, t2s_1, t2s_2);
152  test_T2s_13(t1_2, t2s_1, t2s_2);
153  test_T2s_14(t1_2, t2s_1, t2s_2);
154  test_T2s_15(t1_2, t2s_1, t2s_2);
155  test_T2s_16(t1_2, t2s_1, t2s_2);
156  test_T2s_17(t1_2, t2s_1, t2s_2);
157  test_T2s_18(t1_2, t2s_1, t2s_2);
158  test_T2s_19(t1_2, t2s_1, t2s_2);
159  test_T2s_20(t1_1, t1_2, t2s_2);
160  test_T2s_21(t1_1, t1_2, t2s_2);
161  test_T2s_22(t2s_1, t2s_2);
162  test_T2s_23(t2_1, t2s_2, t2s_3);
163  test_T2s_24(t2_1, t2s_2, t2s_3);
164  test_T2s_25(t2_1, t2s_2, t2s_3);
165  test_T2s_26(t2_1, t2s_2, t2s_3);
166  test_T2s_27(t2s_1, t2s_2);
167  test_T2s_28(t2s_1, t2s_2);
168  test_T2s_29(t2s_1, t2s_2);
169  test_T2s_30(t2_1, t2_2, t2s_2);
170  test_T2s_31(t2_1, t2_2, t2s_2);
171  test_T2s_32(t2_1, t2_2, t2s_2);
172  test_T2s_33(t2_1, t2_2, t2s_2);
173  test_T2s_34(t1_2, t2s_1, t2s_2);
174  test_T2s_35(t1_2, t2s_1, t2s_2);
175  test_T2s_36(t2_2, t2s_2);
176  test_T2s_37(t2_1, t2_2, t2s_2);
177  test_T2s_38(t2_1, t2_2, t2s_2);
178  test_T2s_39(t2_1, t2_2, t2s_2);
179  test_T2s_40(t2_1, t2_2, t2s_2);
180  test_T2s_41(t2_1, t2s_1, t2s_2);
181  test_T2s_42(t2_1, t2s_1, t2s_2);
182  test_T2s_43(t2_1, t2s_1, t2s_2);
183  test_T2s_44(t2_1, t2s_1, t2s_2);
184  test_T2s_45(t1_2, t2s_1);
185  test_T2s_46(t1_2, t2s_1);
186  test_T2s_47(t2s_1, t2s_2);
187 }
test_T2s_01
void test_T2s_01(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_01.cpp:7
test_T2s_iostream
void test_T2s_iostream()
Definition: test_T2s_iostream.cpp:7
FTensor
JSON compatible output.
Definition: Christof_constructor.hpp:6
test_T2s_34
void test_T2s_34(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_34.cpp:7
test_T2s_40
void test_T2s_40(Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_40.cpp:7
FTensor::Tensor1< double, 3 >
test_T2s_35
void test_T2s_35(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_35.cpp:7
test_T2s_29
void test_T2s_29(Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_29.cpp:7
test_T2s_14
void test_T2s_14(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_14.cpp:7
test_T2s_22
void test_T2s_22(Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_22.cpp:7
test_T2s_41
void test_T2s_41(Tensor2< double, 3, 3 > &t2_1, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_41.cpp:7
test_T2s_27
void test_T2s_27(Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_27.cpp:7
test_T2s_20
void test_T2s_20(Tensor1< double, 3 > &t1_1, const Tensor1< double, 3 > &t1_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_20.cpp:7
test_T2s_39
void test_T2s_39(Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_39.cpp:7
test_T2s_28
void test_T2s_28(Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_28.cpp:7
test_T2s_36
void test_T2s_36(const Tensor2< double, 3, 3 > &t2_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_36.cpp:7
test_T2s_08
void test_T2s_08(Tensor1< double, 3 > &t1_1, const Tensor1< double, 3 > &t1_2, const Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_08.cpp:7
test_T2s_05
void test_T2s_05(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_05.cpp:7
test_T2s_09
void test_T2s_09(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_09.cpp:7
test_T2s_43
void test_T2s_43(Tensor2< double, 3, 3 > &t2_1, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_43.cpp:7
FTensor::Tensor2_symmetric
Definition: Tensor2_symmetric_value.hpp:13
test_T2s_06
void test_T2s_06(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_06.cpp:7
test_T2s_47
void test_T2s_47(const Tensor2_symmetric< double, 3 > &t1s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_47.cpp:7
FTensor::Tensor2< double, 3, 3 >
test_T2s_12
void test_T2s_12(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_12.cpp:7
test_T2s_44
void test_T2s_44(Tensor2< double, 3, 3 > &t2_1, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_44.cpp:7
test_T2s
void test_T2s(Tensor1< double, 3 > &t1_1, const Tensor1< double, 3 > &t1_2, Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2, const Tensor2_symmetric< double, 3 > &t2s_3)
Definition: test_T2s.cpp:133
test_T2s_30
void test_T2s_30(Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_30.cpp:7
test_T2s_17
void test_T2s_17(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_17.cpp:7
test_T2s_18
void test_T2s_18(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_18.cpp:7
test_T2s_42
void test_T2s_42(Tensor2< double, 3, 3 > &t2_1, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_42.cpp:7
test_T2s_11
void test_T2s_11(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_11.cpp:7
test_T2s_38
void test_T2s_38(Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_38.cpp:7
test_T2s_31
void test_T2s_31(Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_31.cpp:7
test_T2s_37
void test_T2s_37(Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_37.cpp:7
test_T2s_02
void test_T2s_02(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_02.cpp:7
test_T2s_13
void test_T2s_13(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_13.cpp:7
test_T2s_07
void test_T2s_07(Tensor1< double, 3 > &t1_1, Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_07.cpp:7
test_T2s_04
void test_T2s_04(Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_04.cpp:7
test_T2s_21
void test_T2s_21(Tensor1< double, 3 > &t1_1, const Tensor1< double, 3 > &t1_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_21.cpp:7
test_T2s_23
void test_T2s_23(Tensor2< double, 3, 3 > &t2_1, const Tensor2_symmetric< double, 3 > &t2s_2, const Tensor2_symmetric< double, 3 > &t2s_3)
Definition: test_T2s_23.cpp:7
std
Definition: enable_if.hpp:5
test_T2s_32
void test_T2s_32(Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_32.cpp:7
test_T2s_19
void test_T2s_19(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_19.cpp:7
test_T2s_46
void test_T2s_46(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_46.cpp:7
test_T2s_16
void test_T2s_16(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_16.cpp:7
test_T2s_03
void test_T2s_03(const Tensor2< double, 3, 3 > &t2_2, Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_03.cpp:7
test_T2s_45
void test_T2s_45(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1)
Definition: test_T2s_45.cpp:7
test_T2s_15
void test_T2s_15(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_15.cpp:7
test_T2s_24
void test_T2s_24(Tensor2< double, 3, 3 > &t2_1, const Tensor2_symmetric< double, 3 > &t2s_2, const Tensor2_symmetric< double, 3 > &t2s_3)
Definition: test_T2s_24.cpp:7
test_T2s_33
void test_T2s_33(Tensor2< double, 3, 3 > &t2_1, const Tensor2< double, 3, 3 > &t2_2, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_33.cpp:7
test_T2s_25
void test_T2s_25(Tensor2< double, 3, 3 > &t2_1, const Tensor2_symmetric< double, 3 > &t2s_2, const Tensor2_symmetric< double, 3 > &t2s_3)
Definition: test_T2s_25.cpp:7
test_T2s_10
void test_T2s_10(const Tensor1< double, 3 > &t1_2, Tensor2_symmetric< double, 3 > &t2s_1, const Tensor2_symmetric< double, 3 > &t2s_2)
Definition: test_T2s_10.cpp:7
test_T2s_26
void test_T2s_26(Tensor2< double, 3, 3 > &t2_1, const Tensor2_symmetric< double, 3 > &t2s_2, const Tensor2_symmetric< double, 3 > &t2s_3)
Definition: test_T2s_26.cpp:7