1 | // |
---|
2 | // Copyright (c) 2000-2002 |
---|
3 | // Joerg Walter, Mathias Koch |
---|
4 | // |
---|
5 | // Permission to use, copy, modify, distribute and sell this software |
---|
6 | // and its documentation for any purpose is hereby granted without fee, |
---|
7 | // provided that the above copyright notice appear in all copies and |
---|
8 | // that both that copyright notice and this permission notice appear |
---|
9 | // in supporting documentation. The authors make no representations |
---|
10 | // about the suitability of this software for any purpose. |
---|
11 | // It is provided "as is" without express or implied warranty. |
---|
12 | // |
---|
13 | // The authors gratefully acknowledge the support of |
---|
14 | // GeNeSys mbH & Co. KG in producing this work. |
---|
15 | // |
---|
16 | |
---|
17 | #include "test4.hpp" |
---|
18 | |
---|
19 | // Test matrix & vector expression templates |
---|
20 | template<class V, class M, int N> |
---|
21 | struct test_my_matrix_vector { |
---|
22 | typedef typename V::value_type value_type; |
---|
23 | |
---|
24 | template<class VP, class MP> |
---|
25 | void test_with (VP &v1, VP &v2, MP &m1) const { |
---|
26 | { |
---|
27 | #ifndef USE_DIAGONAL |
---|
28 | // Rows and columns |
---|
29 | initialize_matrix (m1); |
---|
30 | for (int i = 0; i < N; ++ i) { |
---|
31 | v2 = ublas::row (m1, i); |
---|
32 | std::cout << "row (m, " << i << ") = " << v2 << std::endl; |
---|
33 | v2 = ublas::column (m1, i); |
---|
34 | std::cout << "column (m, " << i << ") = " << v2 << std::endl; |
---|
35 | } |
---|
36 | |
---|
37 | // Outer product |
---|
38 | initialize_vector (v1); |
---|
39 | initialize_vector (v2); |
---|
40 | v1 (0) = 0; |
---|
41 | v1 (N - 1) = 0; |
---|
42 | m1 = ublas::outer_prod (v1, v2); |
---|
43 | std::cout << "outer_prod (v1, v2) = " << m1 << std::endl; |
---|
44 | |
---|
45 | // Matrix vector product |
---|
46 | initialize_matrix (m1); |
---|
47 | initialize_vector (v1); |
---|
48 | v2 = ublas::prod (m1, v1); |
---|
49 | std::cout << "prod (m1, v1) = " << v2 << std::endl; |
---|
50 | v2 = ublas::prod (v1, m1); |
---|
51 | std::cout << "prod (v1, m1) = " << v2 << std::endl; |
---|
52 | #endif |
---|
53 | } |
---|
54 | } |
---|
55 | void operator () () const { |
---|
56 | { |
---|
57 | V v1 (N), v2 (N); |
---|
58 | #ifdef USE_BANDED |
---|
59 | M m1 (N, N, 1, 1); |
---|
60 | #endif |
---|
61 | #ifdef USE_DIAGONAL |
---|
62 | M m1 (N, N); |
---|
63 | #endif |
---|
64 | test_with (v1, v2, m1); |
---|
65 | |
---|
66 | ublas::matrix_row<M> mr1 (m1, 1), mr2 (m1, 1); |
---|
67 | test_with (mr1, mr2, m1); |
---|
68 | |
---|
69 | ublas::matrix_column<M> mc1 (m1, 1), mc2 (m1, 1); |
---|
70 | test_with (mc1, mc2, m1); |
---|
71 | |
---|
72 | #ifdef USE_RANGE |
---|
73 | ublas::matrix_vector_range<M> mvr1 (m1, ublas::range (0, N), ublas::range (0, N)), |
---|
74 | mvr2 (m1, ublas::range (0, N), ublas::range (0, N)); |
---|
75 | test_with (mvr1, mvr2, m1); |
---|
76 | #endif |
---|
77 | |
---|
78 | #ifdef USE_SLICE |
---|
79 | ublas::matrix_vector_slice<M> mvs1 (m1, ublas::slice (0, 1, N), ublas::slice (0, 1, N)), |
---|
80 | mvs2 (m1, ublas::slice (0, 1, N), ublas::slice (0, 1, N)); |
---|
81 | test_with (mvs1, mvs2, m1); |
---|
82 | #endif |
---|
83 | } |
---|
84 | } |
---|
85 | |
---|
86 | void operator () (int) const { |
---|
87 | #ifdef USE_ADAPTOR |
---|
88 | { |
---|
89 | #ifdef USE_BANDED |
---|
90 | V v1 (N), v2 (N); |
---|
91 | M m1 (N, N, 1, 1); |
---|
92 | ublas::banded_adaptor<M> bam1 (m1, 1, 1); |
---|
93 | test_with (v1, v2, bam1); |
---|
94 | |
---|
95 | ublas::matrix_row<ublas::banded_adaptor<M> > mr1 (bam1, 1), mr2 (bam1, 1); |
---|
96 | test_with (mr1, mr2, bam1); |
---|
97 | |
---|
98 | ublas::matrix_column<ublas::banded_adaptor<M> > mc1 (bam1, 1), mc2 (bam1, 1); |
---|
99 | test_with (mc1, mc2, bam1); |
---|
100 | |
---|
101 | #ifdef USE_RANGE |
---|
102 | ublas::matrix_vector_range<ublas::banded_adaptor<M> > mvr1 (bam1, ublas::range (0, N), ublas::range (0, N)), |
---|
103 | mvr2 (bam1, ublas::range (0, N), ublas::range (0, N)); |
---|
104 | test_with (mvr1, mvr2, bam1); |
---|
105 | #endif |
---|
106 | |
---|
107 | #ifdef USE_SLICE |
---|
108 | ublas::matrix_vector_slice<ublas::banded_adaptor<M> > mvs1 (bam1, ublas::slice (0, 1, N), ublas::slice (0, 1, N)), |
---|
109 | mvs2 (bam1, ublas::slice (0, 1, N), ublas::slice (0, 1, N)); |
---|
110 | test_with (mvs1, mvs2, bam1); |
---|
111 | #endif |
---|
112 | #endif |
---|
113 | #ifdef USE_DIAGONAL |
---|
114 | V v1 (N), v2 (N); |
---|
115 | M m1 (N, N); |
---|
116 | ublas::diagonal_adaptor<M> dam1 (m1); |
---|
117 | test_with (v1, v2, dam1); |
---|
118 | |
---|
119 | ublas::matrix_row<ublas::diagonal_adaptor<M> > mr1 (dam1, 1), mr2 (dam1, 1); |
---|
120 | test_with (mr1, mr2, dam1); |
---|
121 | |
---|
122 | ublas::matrix_column<ublas::diagonal_adaptor<M> > mc1 (dam1, 1), mc2 (dam1, 1); |
---|
123 | test_with (mc1, mc2, dam1); |
---|
124 | |
---|
125 | #ifdef USE_RANGE |
---|
126 | ublas::matrix_vector_range<ublas::diagonal_adaptor<M> > mvr1 (dam1, ublas::range (0, N), ublas::range (0, N)), |
---|
127 | mvr2 (dam1, ublas::range (0, N), ublas::range (0, N)); |
---|
128 | test_with (mvr1, mvr2, dam1); |
---|
129 | #endif |
---|
130 | |
---|
131 | #ifdef USE_SLICE |
---|
132 | ublas::matrix_vector_slice<ublas::diagonal_adaptor<M> > mvs1 (dam1, ublas::slice (0, 1, N), ublas::slice (0, 1, N)), |
---|
133 | mvs2 (dam1, ublas::slice (0, 1, N), ublas::slice (0, 1, N)); |
---|
134 | test_with (mvs1, mvs2, dam1); |
---|
135 | #endif |
---|
136 | #endif |
---|
137 | } |
---|
138 | #endif |
---|
139 | } |
---|
140 | }; |
---|
141 | |
---|
142 | // Test matrix & vector |
---|
143 | void test_matrix_vector () { |
---|
144 | std::cout << "test_matrix_vector" << std::endl; |
---|
145 | |
---|
146 | #ifdef USE_BANDED |
---|
147 | #ifdef USE_BOUNDED_ARRAY |
---|
148 | #ifdef USE_FLOAT |
---|
149 | std::cout << "float, bounded_array" << std::endl; |
---|
150 | test_my_matrix_vector<ublas::vector<float, ublas::bounded_array<float, 3> >, |
---|
151 | ublas::banded_matrix<float, ublas::row_major, ublas::bounded_array<float, 3 * 3> >, 3> () (); |
---|
152 | test_my_matrix_vector<ublas::vector<float, ublas::bounded_array<float, 3> >, |
---|
153 | ublas::banded_matrix<float, ublas::row_major, ublas::bounded_array<float, 3 * 3> >, 3> () (0); |
---|
154 | #endif |
---|
155 | |
---|
156 | #ifdef USE_DOUBLE |
---|
157 | std::cout << "double, bounded_array" << std::endl; |
---|
158 | test_my_matrix_vector<ublas::vector<double, ublas::bounded_array<double, 3> >, |
---|
159 | ublas::banded_matrix<double, ublas::row_major, ublas::bounded_array<double, 3 * 3> >, 3> () (); |
---|
160 | test_my_matrix_vector<ublas::vector<double, ublas::bounded_array<double, 3> >, |
---|
161 | ublas::banded_matrix<double, ublas::row_major, ublas::bounded_array<double, 3 * 3> >, 3> () (0); |
---|
162 | #endif |
---|
163 | |
---|
164 | #ifdef USE_STD_COMPLEX |
---|
165 | #ifdef USE_FLOAT |
---|
166 | std::cout << "std::complex<float>, bounded_array" << std::endl; |
---|
167 | test_my_matrix_vector<ublas::vector<std::complex<float>, ublas::bounded_array<std::complex<float>, 3> >, |
---|
168 | ublas::banded_matrix<std::complex<float>, ublas::row_major, ublas::bounded_array<std::complex<float>, 3 * 3> >, 3> () (); |
---|
169 | test_my_matrix_vector<ublas::vector<std::complex<float>, ublas::bounded_array<std::complex<float>, 3> >, |
---|
170 | ublas::banded_matrix<std::complex<float>, ublas::row_major, ublas::bounded_array<std::complex<float>, 3 * 3> >, 3> () (0); |
---|
171 | #endif |
---|
172 | |
---|
173 | #ifdef USE_DOUBLE |
---|
174 | std::cout << "std::complex<double>, bounded_array" << std::endl; |
---|
175 | test_my_matrix_vector<ublas::vector<std::complex<double>, ublas::bounded_array<std::complex<double>, 3> >, |
---|
176 | ublas::banded_matrix<std::complex<double>, ublas::row_major, ublas::bounded_array<std::complex<double>, 3 * 3> >, 3> () (); |
---|
177 | test_my_matrix_vector<ublas::vector<std::complex<double>, ublas::bounded_array<std::complex<double>, 3> >, |
---|
178 | ublas::banded_matrix<std::complex<double>, ublas::row_major, ublas::bounded_array<std::complex<double>, 3 * 3> >, 3> () (0); |
---|
179 | #endif |
---|
180 | #endif |
---|
181 | #endif |
---|
182 | |
---|
183 | #ifdef USE_UNBOUNDED_ARRAY |
---|
184 | #ifdef USE_FLOAT |
---|
185 | std::cout << "float, unbounded_array" << std::endl; |
---|
186 | test_my_matrix_vector<ublas::vector<float, ublas::unbounded_array<float> >, |
---|
187 | ublas::banded_matrix<float, ublas::row_major, ublas::unbounded_array<float> >, 3> () (); |
---|
188 | test_my_matrix_vector<ublas::vector<float, ublas::unbounded_array<float> >, |
---|
189 | ublas::banded_matrix<float, ublas::row_major, ublas::unbounded_array<float> >, 3> () (0); |
---|
190 | #endif |
---|
191 | |
---|
192 | #ifdef USE_DOUBLE |
---|
193 | std::cout << "double, unbounded_array" << std::endl; |
---|
194 | test_my_matrix_vector<ublas::vector<double, ublas::unbounded_array<double> >, |
---|
195 | ublas::banded_matrix<double, ublas::row_major, ublas::unbounded_array<double> >, 3> () (); |
---|
196 | test_my_matrix_vector<ublas::vector<double, ublas::unbounded_array<double> >, |
---|
197 | ublas::banded_matrix<double, ublas::row_major, ublas::unbounded_array<double> >, 3> () (0); |
---|
198 | #endif |
---|
199 | |
---|
200 | #ifdef USE_STD_COMPLEX |
---|
201 | #ifdef USE_FLOAT |
---|
202 | std::cout << "std::complex<float>, unbounded_array" << std::endl; |
---|
203 | test_my_matrix_vector<ublas::vector<std::complex<float>, ublas::unbounded_array<std::complex<float> > >, |
---|
204 | ublas::banded_matrix<std::complex<float>, ublas::row_major, ublas::unbounded_array<std::complex<float> > >, 3> () (); |
---|
205 | test_my_matrix_vector<ublas::vector<std::complex<float>, ublas::unbounded_array<std::complex<float> > >, |
---|
206 | ublas::banded_matrix<std::complex<float>, ublas::row_major, ublas::unbounded_array<std::complex<float> > >, 3> () (0); |
---|
207 | #endif |
---|
208 | |
---|
209 | #ifdef USE_DOUBLE |
---|
210 | std::cout << "std::complex<double>, unbounded_array" << std::endl; |
---|
211 | test_my_matrix_vector<ublas::vector<std::complex<double>, ublas::unbounded_array<std::complex<double> > >, |
---|
212 | ublas::banded_matrix<std::complex<double>, ublas::row_major, ublas::unbounded_array<std::complex<double> > >, 3> () (); |
---|
213 | test_my_matrix_vector<ublas::vector<std::complex<double>, ublas::unbounded_array<std::complex<double> > >, |
---|
214 | ublas::banded_matrix<std::complex<double>, ublas::row_major, ublas::unbounded_array<std::complex<double> > >, 3> () (0); |
---|
215 | #endif |
---|
216 | #endif |
---|
217 | #endif |
---|
218 | |
---|
219 | #ifdef USE_STD_VECTOR |
---|
220 | #ifdef USE_FLOAT |
---|
221 | std::cout << "float, std::vector" << std::endl; |
---|
222 | test_my_matrix_vector<ublas::vector<float, std::vector<float> >, |
---|
223 | ublas::banded_matrix<float, ublas::row_major, std::vector<float> >, 3> () (); |
---|
224 | test_my_matrix_vector<ublas::vector<float, std::vector<float> >, |
---|
225 | ublas::banded_matrix<float, ublas::row_major, std::vector<float> >, 3> () (0); |
---|
226 | #endif |
---|
227 | |
---|
228 | #ifdef USE_DOUBLE |
---|
229 | std::cout << "double, std::vector" << std::endl; |
---|
230 | test_my_matrix_vector<ublas::vector<double, std::vector<double> >, |
---|
231 | ublas::banded_matrix<double, ublas::row_major, std::vector<double> >, 3> () (); |
---|
232 | test_my_matrix_vector<ublas::vector<double, std::vector<double> >, |
---|
233 | ublas::banded_matrix<double, ublas::row_major, std::vector<double> >, 3> () (0); |
---|
234 | #endif |
---|
235 | |
---|
236 | #ifdef USE_STD_COMPLEX |
---|
237 | #ifdef USE_FLOAT |
---|
238 | std::cout << "std::complex<float>, std::vector" << std::endl; |
---|
239 | test_my_matrix_vector<ublas::vector<std::complex<float>, std::vector<std::complex<float> > >, |
---|
240 | ublas::banded_matrix<std::complex<float>, ublas::row_major, std::vector<std::complex<float> > >, 3> () (); |
---|
241 | test_my_matrix_vector<ublas::vector<std::complex<float>, std::vector<std::complex<float> > >, |
---|
242 | ublas::banded_matrix<std::complex<float>, ublas::row_major, std::vector<std::complex<float> > >, 3> () (0); |
---|
243 | #endif |
---|
244 | |
---|
245 | #ifdef USE_DOUBLE |
---|
246 | std::cout << "std::complex<double>, std::vector" << std::endl; |
---|
247 | test_my_matrix_vector<ublas::vector<std::complex<double>, std::vector<std::complex<double> > >, |
---|
248 | ublas::banded_matrix<std::complex<double>, ublas::row_major, std::vector<std::complex<double> > >, 3> () (); |
---|
249 | test_my_matrix_vector<ublas::vector<std::complex<double>, std::vector<std::complex<double> > >, |
---|
250 | ublas::banded_matrix<std::complex<double>, ublas::row_major, std::vector<std::complex<double> > >, 3> () (0); |
---|
251 | #endif |
---|
252 | #endif |
---|
253 | #endif |
---|
254 | #endif |
---|
255 | |
---|
256 | #ifdef USE_DIAGONAL |
---|
257 | #ifdef USE_BOUNDED_ARRAY |
---|
258 | #ifdef USE_FLOAT |
---|
259 | std::cout << "float, bounded_array" << std::endl; |
---|
260 | test_my_matrix_vector<ublas::vector<float, ublas::bounded_array<float, 3> >, |
---|
261 | ublas::diagonal_matrix<float, ublas::row_major, ublas::bounded_array<float, 3 * 3> >, 3> () (); |
---|
262 | test_my_matrix_vector<ublas::vector<float, ublas::bounded_array<float, 3> >, |
---|
263 | ublas::diagonal_matrix<float, ublas::row_major, ublas::bounded_array<float, 3 * 3> >, 3> () (0); |
---|
264 | #endif |
---|
265 | |
---|
266 | #ifdef USE_DOUBLE |
---|
267 | std::cout << "double, bounded_array" << std::endl; |
---|
268 | test_my_matrix_vector<ublas::vector<double, ublas::bounded_array<double, 3> >, |
---|
269 | ublas::diagonal_matrix<double, ublas::row_major, ublas::bounded_array<double, 3 * 3> >, 3> () (); |
---|
270 | test_my_matrix_vector<ublas::vector<double, ublas::bounded_array<double, 3> >, |
---|
271 | ublas::diagonal_matrix<double, ublas::row_major, ublas::bounded_array<double, 3 * 3> >, 3> () (0); |
---|
272 | #endif |
---|
273 | |
---|
274 | #ifdef USE_STD_COMPLEX |
---|
275 | #ifdef USE_FLOAT |
---|
276 | std::cout << "std::complex<float>, bounded_array" << std::endl; |
---|
277 | test_my_matrix_vector<ublas::vector<std::complex<float>, ublas::bounded_array<std::complex<float>, 3> >, |
---|
278 | ublas::diagonal_matrix<std::complex<float>, ublas::row_major, ublas::bounded_array<std::complex<float>, 3 * 3> >, 3> () (); |
---|
279 | test_my_matrix_vector<ublas::vector<std::complex<float>, ublas::bounded_array<std::complex<float>, 3> >, |
---|
280 | ublas::diagonal_matrix<std::complex<float>, ublas::row_major, ublas::bounded_array<std::complex<float>, 3 * 3> >, 3> () (0); |
---|
281 | #endif |
---|
282 | |
---|
283 | #ifdef USE_DOUBLE |
---|
284 | std::cout << "std::complex<double>, bounded_array" << std::endl; |
---|
285 | test_my_matrix_vector<ublas::vector<std::complex<double>, ublas::bounded_array<std::complex<double>, 3> >, |
---|
286 | ublas::diagonal_matrix<std::complex<double>, ublas::row_major, ublas::bounded_array<std::complex<double>, 3 * 3> >, 3> () (); |
---|
287 | test_my_matrix_vector<ublas::vector<std::complex<double>, ublas::bounded_array<std::complex<double>, 3> >, |
---|
288 | ublas::diagonal_matrix<std::complex<double>, ublas::row_major, ublas::bounded_array<std::complex<double>, 3 * 3> >, 3> () (0); |
---|
289 | #endif |
---|
290 | #endif |
---|
291 | #endif |
---|
292 | |
---|
293 | #ifdef USE_UNBOUNDED_ARRAY |
---|
294 | #ifdef USE_FLOAT |
---|
295 | std::cout << "float, unbounded_array" << std::endl; |
---|
296 | test_my_matrix_vector<ublas::vector<float, ublas::unbounded_array<float> >, |
---|
297 | ublas::diagonal_matrix<float, ublas::row_major, ublas::unbounded_array<float> >, 3> () (); |
---|
298 | test_my_matrix_vector<ublas::vector<float, ublas::unbounded_array<float> >, |
---|
299 | ublas::diagonal_matrix<float, ublas::row_major, ublas::unbounded_array<float> >, 3> () (0); |
---|
300 | #endif |
---|
301 | |
---|
302 | #ifdef USE_DOUBLE |
---|
303 | std::cout << "double, unbounded_array" << std::endl; |
---|
304 | test_my_matrix_vector<ublas::vector<double, ublas::unbounded_array<double> >, |
---|
305 | ublas::diagonal_matrix<double, ublas::row_major, ublas::unbounded_array<double> >, 3> () (); |
---|
306 | test_my_matrix_vector<ublas::vector<double, ublas::unbounded_array<double> >, |
---|
307 | ublas::diagonal_matrix<double, ublas::row_major, ublas::unbounded_array<double> >, 3> () (0); |
---|
308 | #endif |
---|
309 | |
---|
310 | #ifdef USE_STD_COMPLEX |
---|
311 | #ifdef USE_FLOAT |
---|
312 | std::cout << "std::complex<float>, unbounded_array" << std::endl; |
---|
313 | test_my_matrix_vector<ublas::vector<std::complex<float>, ublas::unbounded_array<std::complex<float> > >, |
---|
314 | ublas::diagonal_matrix<std::complex<float>, ublas::row_major, ublas::unbounded_array<std::complex<float> > >, 3> () (); |
---|
315 | test_my_matrix_vector<ublas::vector<std::complex<float>, ublas::unbounded_array<std::complex<float> > >, |
---|
316 | ublas::diagonal_matrix<std::complex<float>, ublas::row_major, ublas::unbounded_array<std::complex<float> > >, 3> () (0); |
---|
317 | #endif |
---|
318 | |
---|
319 | #ifdef USE_DOUBLE |
---|
320 | std::cout << "std::complex<double>, unbounded_array" << std::endl; |
---|
321 | test_my_matrix_vector<ublas::vector<std::complex<double>, ublas::unbounded_array<std::complex<double> > >, |
---|
322 | ublas::diagonal_matrix<std::complex<double>, ublas::row_major, ublas::unbounded_array<std::complex<double> > >, 3> () (); |
---|
323 | test_my_matrix_vector<ublas::vector<std::complex<double>, ublas::unbounded_array<std::complex<double> > >, |
---|
324 | ublas::diagonal_matrix<std::complex<double>, ublas::row_major, ublas::unbounded_array<std::complex<double> > >, 3> () (0); |
---|
325 | #endif |
---|
326 | #endif |
---|
327 | #endif |
---|
328 | |
---|
329 | #ifdef USE_STD_VECTOR |
---|
330 | #ifdef USE_FLOAT |
---|
331 | std::cout << "float, std::vector" << std::endl; |
---|
332 | test_my_matrix_vector<ublas::vector<float, std::vector<float> >, |
---|
333 | ublas::diagonal_matrix<float, ublas::row_major, std::vector<float> >, 3> () (); |
---|
334 | test_my_matrix_vector<ublas::vector<float, std::vector<float> >, |
---|
335 | ublas::diagonal_matrix<float, ublas::row_major, std::vector<float> >, 3> () (0); |
---|
336 | #endif |
---|
337 | |
---|
338 | #ifdef USE_DOUBLE |
---|
339 | std::cout << "double, std::vector" << std::endl; |
---|
340 | test_my_matrix_vector<ublas::vector<double, std::vector<double> >, |
---|
341 | ublas::diagonal_matrix<double, ublas::row_major, std::vector<double> >, 3> () (); |
---|
342 | test_my_matrix_vector<ublas::vector<double, std::vector<double> >, |
---|
343 | ublas::diagonal_matrix<double, ublas::row_major, std::vector<double> >, 3> () (0); |
---|
344 | #endif |
---|
345 | |
---|
346 | #ifdef USE_STD_COMPLEX |
---|
347 | #ifdef USE_FLOAT |
---|
348 | std::cout << "std::complex<float>, std::vector" << std::endl; |
---|
349 | test_my_matrix_vector<ublas::vector<std::complex<float>, std::vector<std::complex<float> > >, |
---|
350 | ublas::diagonal_matrix<std::complex<float>, ublas::row_major, std::vector<std::complex<float> > >, 3> () (); |
---|
351 | test_my_matrix_vector<ublas::vector<std::complex<float>, std::vector<std::complex<float> > >, |
---|
352 | ublas::diagonal_matrix<std::complex<float>, ublas::row_major, std::vector<std::complex<float> > >, 3> () (0); |
---|
353 | #endif |
---|
354 | |
---|
355 | #ifdef USE_DOUBLE |
---|
356 | std::cout << "std::complex<double>, std::vector" << std::endl; |
---|
357 | test_my_matrix_vector<ublas::vector<std::complex<double>, std::vector<std::complex<double> > >, |
---|
358 | ublas::diagonal_matrix<std::complex<double>, ublas::row_major, std::vector<std::complex<double> > >, 3> () (); |
---|
359 | test_my_matrix_vector<ublas::vector<std::complex<double>, std::vector<std::complex<double> > >, |
---|
360 | ublas::diagonal_matrix<std::complex<double>, ublas::row_major, std::vector<std::complex<double> > >, 3> () (0); |
---|
361 | #endif |
---|
362 | #endif |
---|
363 | #endif |
---|
364 | #endif |
---|
365 | } |
---|