Lines Matching +full:- +full:t

22 template<typename T,int NB,typename O>
23 static void complex_test(const T scale) in complex_test()
25 std::cout << "----\r\n" << "N = " << NB << "\r\n"; in complex_test()
27 PVector<T,NB> a; in complex_test()
28 PVector<T,NB> b; in complex_test()
29 PVector<T,NB> c; in complex_test()
30 PVector<T,NB> d; in complex_test()
32 PVector<T,NB> res; in complex_test()
34 PVector<T> a(NB); in complex_test()
35 PVector<T> b(NB); in complex_test()
36 PVector<T> c(NB); in complex_test()
37 PVector<T> d(NB); in complex_test()
39 PVector<T> res(NB); in complex_test()
56 PVector<T,NB> tmp1; in complex_test()
57 PVector<T,NB> tmp2; in complex_test()
81 template<typename T,int NB,typename O>
84 std::cout << "----\r\n" << "N = " << NB << "\r\n"; in test()
86 PVector<T,NB> a; in test()
87 PVector<T,NB> b; in test()
89 PVector<T,NB> res; in test()
91 PVector<T> a(NB); in test()
92 PVector<T> b(NB); in test()
94 PVector<T> res(NB); in test()
125 template<typename T>
129 const int nb_tails = TailForTests<T>::tail; in all_dot_test()
130 const int nb_loops = TailForTests<T>::loop; in all_dot_test()
132 using ACC = typename number_traits<T>::accumulator; in all_dot_test()
133 constexpr auto v = TestConstant<T>::v; in all_dot_test()
135 title<T>("Dot product"); in all_dot_test()
138 test<T,NBVEC_4,ACC>(); in all_dot_test()
139 test<T,NBVEC_8,ACC>(); in all_dot_test()
140 test<T,NBVEC_9,ACC>(); in all_dot_test()
141 test<T,NBVEC_16,ACC>(); in all_dot_test()
142 test<T,NBVEC_32,ACC>(); in all_dot_test()
143 test<T,NBVEC_64,ACC>(); in all_dot_test()
144 test<T,NBVEC_128,ACC>(); in all_dot_test()
145 test<T,NBVEC_256,ACC>(); in all_dot_test()
146 test<T,NBVEC_258,ACC>(); in all_dot_test()
147 test<T,NBVEC_512,ACC>(); in all_dot_test()
148 test<T,NBVEC_1024,ACC>(); in all_dot_test()
149 if constexpr (!std::is_same<T,double>::value) in all_dot_test()
151 test<T,NBVEC_2048,ACC>(); in all_dot_test()
154 test<T,1,ACC>(); in all_dot_test()
155 test<T,nb_tails,ACC>(); in all_dot_test()
156 test<T,nb_loops,ACC>(); in all_dot_test()
157 test<T,nb_loops+1,ACC>(); in all_dot_test()
158 test<T,nb_loops+nb_tails,ACC>(); in all_dot_test()
161 title<T>("Dot product with expressions"); in all_dot_test()
164 complex_test<T,NBVEC_4,ACC>(v); in all_dot_test()
165 complex_test<T,NBVEC_8,ACC>(v); in all_dot_test()
166 complex_test<T,NBVEC_9,ACC>(v); in all_dot_test()
167 complex_test<T,NBVEC_32,ACC>(v); in all_dot_test()
168 complex_test<T,NBVEC_64,ACC>(v); in all_dot_test()
169 complex_test<T,NBVEC_128,ACC>(v); in all_dot_test()
171 complex_test<T,NBVEC_256,ACC>(v); in all_dot_test()
173 complex_test<T,NBVEC_258,ACC>(v); in all_dot_test()
174 complex_test<T,NBVEC_512,ACC>(v); in all_dot_test()
175 complex_test<T,NBVEC_1024,ACC>(v); in all_dot_test()
176 if constexpr (!std::is_same<T,double>::value) in all_dot_test()
178 complex_test<T,NBVEC_2048,ACC>(v); in all_dot_test()
181 complex_test<T,1,ACC>(v); in all_dot_test()
182 complex_test<T,nb_tails,ACC>(v); in all_dot_test()
183 complex_test<T,nb_loops,ACC>(v); in all_dot_test()
184 complex_test<T,nb_loops+1,ACC>(v); in all_dot_test()
185 complex_test<T,nb_loops+nb_tails,ACC>(v); in all_dot_test()