1
2----------------------------------------------
3----------------------------------------------
4## Test :: Vector
5----------------------------------------------
6----------------------------------------------
7
8
9----------------------------------------------
10
11# Testing setup:
12  eps:     1e-10
13  numeric: double
14Running tests for vector of size 24656
15Testing creation of vectors from range...
16Testing creation of vectors from slice...
17 ** vcl_v1 = vector, vcl_v2 = vector **
18Checking for zero_vector initializer...
19Checking for scalar_vector initializer...
20Checking for unit_vector initializer...
21Checking for successful copy...
22Testing inner_prod...
23Testing norm_1...
24Testing norm_2...
25Testing norm_inf...
26Testing index_norm_inf...
27Testing assignments...
28Testing scaling with CPU scalar...
29Testing scaling with GPU scalar...
30Testing scaling with scalar expression...
31Testing shrinking with CPU scalar...
32Testing shrinking with GPU scalar...
33Testing add on vector...
34Checking for successful copy...
35Testing add on vector with flipsign...
36Testing inplace-add on vector...
37Testing assignment to vector with vector multiplied by scalar expression...
38Testing sub on vector...
39Testing inplace-sub on vector...
40Testing multiply-add on vector with CPU scalar (right)...
41Testing multiply-add on vector with CPU scalar (left)...
42Testing multiply-add on vector with CPU scalar (both)...
43Testing inplace multiply-add on vector with CPU scalar...
44Testing multiply-add on vector with GPU scalar (right)...
45Testing multiply-add on vector with GPU scalar (left)...
46Testing multiply-add on vector with GPU scalar (both)...
47Testing inplace multiply-add on vector with GPU scalar (both, adding)...
48Testing inplace multiply-add on vector with GPU scalar (both, subtracting)...
49Testing inplace multiply-add on vector with GPU scalar...
50Testing division-add on vector with CPU scalar (right)...
51Testing division-add on vector with CPU scalar (left)...
52Testing division-add on vector with CPU scalar (both)...
53Testing division-multiply-add on vector with CPU scalar...
54Testing multiply-division-add on vector with CPU scalar...
55Testing inplace division-add on vector with CPU scalar...
56Testing division-add on vector with GPU scalar (right)...
57Testing division-add on vector with GPU scalar (left)...
58Testing division-add on vector with GPU scalar (both)...
59Testing inplace division-add on vector with GPU scalar (both, adding)...
60Testing inplace division-add on vector with GPU scalar (both, subtracting)...
61Testing inplace division-multiply-add on vector with GPU scalar (adding)...
62Testing inplace multiply-division-add on vector with GPU scalar (subtracting)...
63Testing inplace division-add on vector with GPU scalar...
64Testing multiply-subtract on vector with CPU scalar (right)...
65Testing multiply-subtract on vector with CPU scalar (left)...
66Testing multiply-subtract on vector with CPU scalar (both)...
67Testing inplace multiply-subtract on vector with CPU scalar...
68Testing multiply-subtract on vector with GPU scalar (right)...
69Testing multiply-subtract on vector with GPU scalar (left)...
70Testing multiply-subtract on vector with GPU scalar (both)...
71Testing inplace multiply-subtract on vector with GPU scalar (both, adding)...
72Testing inplace multiply-subtract on vector with GPU scalar (both, subtracting)...
73Testing inplace multiply-subtract on vector with GPU scalar...
74Testing division-subtract on vector with CPU scalar (right)...
75Testing division-subtract on vector with CPU scalar (left)...
76Testing division-subtract on vector with CPU scalar (both)...
77Testing inplace division-subtract on vector with CPU scalar...
78Testing inplace division-subtract on vector with GPU scalar...
79Testing division-subtract on vector with GPU scalar (right)...
80Testing division-subtract on vector with GPU scalar (left)...
81Testing division-subtract on vector with GPU scalar (both)...
82Testing inplace division-subtract on vector with GPU scalar (both, adding)...
83Testing inplace division-subtract on vector with GPU scalar (both, subtracting)...
84Testing multiply-division-subtract on vector with GPU scalar...
85Testing division-multiply-subtract on vector with GPU scalar...
86Testing inplace multiply-division-subtract on vector with GPU scalar (adding)...
87Testing inplace division-multiply-subtract on vector with GPU scalar (adding)...
88Testing inplace multiply-division-subtract on vector with GPU scalar (subtracting)...
89Testing inplace division-multiply-subtract on vector with GPU scalar (subtracting)...
90Testing inplace division-subtract on vector with GPU scalar...
91Testing three vector additions...
92Testing complicated vector expression with CPU scalar...
93Testing complicated vector expression with GPU scalar...
94Testing swap...
95Testing unary operator-...
96Testing elementwise multiplication...
97 v1 = element_prod(v1, v2);
98 v1 += element_prod(v1, v2);
99 v1 -= element_prod(v1, v2);
100 v1 = element_prod(v1 + v2, v2);
101 v1 += element_prod(v1 + v2, v2);
102 v1 -= element_prod(v1 + v2, v2);
103 v1 = element_prod(v1, v2 + v1);
104 v1 += element_prod(v1, v2 + v1);
105 v1 -= element_prod(v1, v2 + v1);
106 v1 = element_prod(v1 + v2, v2 + v1);
107 v1 += element_prod(v1 + v2, v2 + v1);
108 v1 -= element_prod(v1 + v2, v2 + v1);
109Testing elementwise division...
110Testing elementwise power function...
111Testing unary elementwise operations...
112Testing another complicated vector expression with CPU scalars...
113Testing another complicated vector expression with GPU scalars...
114Testing lenghty sum of scaled vectors...
115 ** vcl_v1 = vector, vcl_v2 = range **
116Checking for zero_vector initializer...
117Checking for scalar_vector initializer...
118Checking for unit_vector initializer...
119Checking for successful copy...
120Testing inner_prod...
121Testing norm_1...
122Testing norm_2...
123Testing norm_inf...
124Testing index_norm_inf...
125Testing assignments...
126Testing scaling with CPU scalar...
127Testing scaling with GPU scalar...
128Testing scaling with scalar expression...
129Testing shrinking with CPU scalar...
130Testing shrinking with GPU scalar...
131Testing add on vector...
132Checking for successful copy...
133Testing add on vector with flipsign...
134Testing inplace-add on vector...
135Testing assignment to vector with vector multiplied by scalar expression...
136Testing sub on vector...
137Testing inplace-sub on vector...
138Testing multiply-add on vector with CPU scalar (right)...
139Testing multiply-add on vector with CPU scalar (left)...
140Testing multiply-add on vector with CPU scalar (both)...
141Testing inplace multiply-add on vector with CPU scalar...
142Testing multiply-add on vector with GPU scalar (right)...
143Testing multiply-add on vector with GPU scalar (left)...
144Testing multiply-add on vector with GPU scalar (both)...
145Testing inplace multiply-add on vector with GPU scalar (both, adding)...
146Testing inplace multiply-add on vector with GPU scalar (both, subtracting)...
147Testing inplace multiply-add on vector with GPU scalar...
148Testing division-add on vector with CPU scalar (right)...
149Testing division-add on vector with CPU scalar (left)...
150Testing division-add on vector with CPU scalar (both)...
151Testing division-multiply-add on vector with CPU scalar...
152Testing multiply-division-add on vector with CPU scalar...
153Testing inplace division-add on vector with CPU scalar...
154Testing division-add on vector with GPU scalar (right)...
155Testing division-add on vector with GPU scalar (left)...
156Testing division-add on vector with GPU scalar (both)...
157Testing inplace division-add on vector with GPU scalar (both, adding)...
158Testing inplace division-add on vector with GPU scalar (both, subtracting)...
159Testing inplace division-multiply-add on vector with GPU scalar (adding)...
160Testing inplace multiply-division-add on vector with GPU scalar (subtracting)...
161Testing inplace division-add on vector with GPU scalar...
162Testing multiply-subtract on vector with CPU scalar (right)...
163Testing multiply-subtract on vector with CPU scalar (left)...
164Testing multiply-subtract on vector with CPU scalar (both)...
165Testing inplace multiply-subtract on vector with CPU scalar...
166Testing multiply-subtract on vector with GPU scalar (right)...
167Testing multiply-subtract on vector with GPU scalar (left)...
168Testing multiply-subtract on vector with GPU scalar (both)...
169Testing inplace multiply-subtract on vector with GPU scalar (both, adding)...
170Testing inplace multiply-subtract on vector with GPU scalar (both, subtracting)...
171Testing inplace multiply-subtract on vector with GPU scalar...
172Testing division-subtract on vector with CPU scalar (right)...
173Testing division-subtract on vector with CPU scalar (left)...
174Testing division-subtract on vector with CPU scalar (both)...
175Testing inplace division-subtract on vector with CPU scalar...
176Testing inplace division-subtract on vector with GPU scalar...
177Testing division-subtract on vector with GPU scalar (right)...
178Testing division-subtract on vector with GPU scalar (left)...
179Testing division-subtract on vector with GPU scalar (both)...
180Testing inplace division-subtract on vector with GPU scalar (both, adding)...
181Testing inplace division-subtract on vector with GPU scalar (both, subtracting)...
182Testing multiply-division-subtract on vector with GPU scalar...
183Testing division-multiply-subtract on vector with GPU scalar...
184Testing inplace multiply-division-subtract on vector with GPU scalar (adding)...
185Testing inplace division-multiply-subtract on vector with GPU scalar (adding)...
186Testing inplace multiply-division-subtract on vector with GPU scalar (subtracting)...
187Testing inplace division-multiply-subtract on vector with GPU scalar (subtracting)...
188Testing inplace division-subtract on vector with GPU scalar...
189Testing three vector additions...
190Testing complicated vector expression with CPU scalar...
191Testing complicated vector expression with GPU scalar...
192Testing swap...
193Testing unary operator-...
194Testing elementwise multiplication...
195 v1 = element_prod(v1, v2);
196 v1 += element_prod(v1, v2);
197 v1 -= element_prod(v1, v2);
198 v1 = element_prod(v1 + v2, v2);
199 v1 += element_prod(v1 + v2, v2);
200 v1 -= element_prod(v1 + v2, v2);
201 v1 = element_prod(v1, v2 + v1);
202 v1 += element_prod(v1, v2 + v1);
203 v1 -= element_prod(v1, v2 + v1);
204 v1 = element_prod(v1 + v2, v2 + v1);
205 v1 += element_prod(v1 + v2, v2 + v1);
206 v1 -= element_prod(v1 + v2, v2 + v1);
207Testing elementwise division...
208Testing elementwise power function...
209Testing unary elementwise operations...
210Testing another complicated vector expression with CPU scalars...
211Testing another complicated vector expression with GPU scalars...
212Testing lenghty sum of scaled vectors...
213 ** vcl_v1 = vector, vcl_v2 = slice **
214Checking for zero_vector initializer...
215Checking for scalar_vector initializer...
216Checking for unit_vector initializer...
217Checking for successful copy...
218Testing inner_prod...
219Testing norm_1...
220Testing norm_2...
221Testing norm_inf...
222Testing index_norm_inf...
223Testing assignments...
224Testing scaling with CPU scalar...
225Testing scaling with GPU scalar...
226Testing scaling with scalar expression...
227Testing shrinking with CPU scalar...
228Testing shrinking with GPU scalar...
229Testing add on vector...
230Checking for successful copy...
231Testing add on vector with flipsign...
232Testing inplace-add on vector...
233Testing assignment to vector with vector multiplied by scalar expression...
234Testing sub on vector...
235Testing inplace-sub on vector...
236Testing multiply-add on vector with CPU scalar (right)...
237Testing multiply-add on vector with CPU scalar (left)...
238Testing multiply-add on vector with CPU scalar (both)...
239Testing inplace multiply-add on vector with CPU scalar...
240Testing multiply-add on vector with GPU scalar (right)...
241Testing multiply-add on vector with GPU scalar (left)...
242Testing multiply-add on vector with GPU scalar (both)...
243Testing inplace multiply-add on vector with GPU scalar (both, adding)...
244Testing inplace multiply-add on vector with GPU scalar (both, subtracting)...
245Testing inplace multiply-add on vector with GPU scalar...
246Testing division-add on vector with CPU scalar (right)...
247Testing division-add on vector with CPU scalar (left)...
248Testing division-add on vector with CPU scalar (both)...
249Testing division-multiply-add on vector with CPU scalar...
250Testing multiply-division-add on vector with CPU scalar...
251Testing inplace division-add on vector with CPU scalar...
252Testing division-add on vector with GPU scalar (right)...
253Testing division-add on vector with GPU scalar (left)...
254Testing division-add on vector with GPU scalar (both)...
255Testing inplace division-add on vector with GPU scalar (both, adding)...
256Testing inplace division-add on vector with GPU scalar (both, subtracting)...
257Testing inplace division-multiply-add on vector with GPU scalar (adding)...
258Testing inplace multiply-division-add on vector with GPU scalar (subtracting)...
259Testing inplace division-add on vector with GPU scalar...
260Testing multiply-subtract on vector with CPU scalar (right)...
261Testing multiply-subtract on vector with CPU scalar (left)...
262Testing multiply-subtract on vector with CPU scalar (both)...
263Testing inplace multiply-subtract on vector with CPU scalar...
264Testing multiply-subtract on vector with GPU scalar (right)...
265Testing multiply-subtract on vector with GPU scalar (left)...
266Testing multiply-subtract on vector with GPU scalar (both)...
267Testing inplace multiply-subtract on vector with GPU scalar (both, adding)...
268Testing inplace multiply-subtract on vector with GPU scalar (both, subtracting)...
269Testing inplace multiply-subtract on vector with GPU scalar...
270Testing division-subtract on vector with CPU scalar (right)...
271Testing division-subtract on vector with CPU scalar (left)...
272Testing division-subtract on vector with CPU scalar (both)...
273Testing inplace division-subtract on vector with CPU scalar...
274Testing inplace division-subtract on vector with GPU scalar...
275Testing division-subtract on vector with GPU scalar (right)...
276Testing division-subtract on vector with GPU scalar (left)...
277Testing division-subtract on vector with GPU scalar (both)...
278Testing inplace division-subtract on vector with GPU scalar (both, adding)...
279Testing inplace division-subtract on vector with GPU scalar (both, subtracting)...
280Testing multiply-division-subtract on vector with GPU scalar...
281Testing division-multiply-subtract on vector with GPU scalar...
282Testing inplace multiply-division-subtract on vector with GPU scalar (adding)...
283Testing inplace division-multiply-subtract on vector with GPU scalar (adding)...
284Testing inplace multiply-division-subtract on vector with GPU scalar (subtracting)...
285Testing inplace division-multiply-subtract on vector with GPU scalar (subtracting)...
286Testing inplace division-subtract on vector with GPU scalar...
287Testing three vector additions...
288Testing complicated vector expression with CPU scalar...
289Testing complicated vector expression with GPU scalar...
290Testing swap...
291Testing unary operator-...
292Testing elementwise multiplication...
293 v1 = element_prod(v1, v2);
294 v1 += element_prod(v1, v2);
295 v1 -= element_prod(v1, v2);
296 v1 = element_prod(v1 + v2, v2);
297 v1 += element_prod(v1 + v2, v2);
298 v1 -= element_prod(v1 + v2, v2);
299 v1 = element_prod(v1, v2 + v1);
300 v1 += element_prod(v1, v2 + v1);
301 v1 -= element_prod(v1, v2 + v1);
302 v1 = element_prod(v1 + v2, v2 + v1);
303 v1 += element_prod(v1 + v2, v2 + v1);
304 v1 -= element_prod(v1 + v2, v2 + v1);
305Testing elementwise division...
306Testing elementwise power function...
307Testing unary elementwise operations...
308Testing another complicated vector expression with CPU scalars...
309Testing another complicated vector expression with GPU scalars...
310Testing lenghty sum of scaled vectors...
311 ** vcl_v1 = range, vcl_v2 = vector **
312Checking for zero_vector initializer...
313Checking for scalar_vector initializer...
314Checking for unit_vector initializer...
315Checking for successful copy...
316Testing inner_prod...
317Testing norm_1...
318Testing norm_2...
319Testing norm_inf...
320Testing index_norm_inf...
321Testing assignments...
322Testing scaling with CPU scalar...
323Testing scaling with GPU scalar...
324Testing scaling with scalar expression...
325Testing shrinking with CPU scalar...
326Testing shrinking with GPU scalar...
327Testing add on vector...
328Checking for successful copy...
329Testing add on vector with flipsign...
330Testing inplace-add on vector...
331Testing assignment to vector with vector multiplied by scalar expression...
332Testing sub on vector...
333Testing inplace-sub on vector...
334Testing multiply-add on vector with CPU scalar (right)...
335Testing multiply-add on vector with CPU scalar (left)...
336Testing multiply-add on vector with CPU scalar (both)...
337Testing inplace multiply-add on vector with CPU scalar...
338Testing multiply-add on vector with GPU scalar (right)...
339Testing multiply-add on vector with GPU scalar (left)...
340Testing multiply-add on vector with GPU scalar (both)...
341Testing inplace multiply-add on vector with GPU scalar (both, adding)...
342Testing inplace multiply-add on vector with GPU scalar (both, subtracting)...
343Testing inplace multiply-add on vector with GPU scalar...
344Testing division-add on vector with CPU scalar (right)...
345Testing division-add on vector with CPU scalar (left)...
346Testing division-add on vector with CPU scalar (both)...
347Testing division-multiply-add on vector with CPU scalar...
348Testing multiply-division-add on vector with CPU scalar...
349Testing inplace division-add on vector with CPU scalar...
350Testing division-add on vector with GPU scalar (right)...
351Testing division-add on vector with GPU scalar (left)...
352Testing division-add on vector with GPU scalar (both)...
353Testing inplace division-add on vector with GPU scalar (both, adding)...
354Testing inplace division-add on vector with GPU scalar (both, subtracting)...
355Testing inplace division-multiply-add on vector with GPU scalar (adding)...
356Testing inplace multiply-division-add on vector with GPU scalar (subtracting)...
357Testing inplace division-add on vector with GPU scalar...
358Testing multiply-subtract on vector with CPU scalar (right)...
359Testing multiply-subtract on vector with CPU scalar (left)...
360Testing multiply-subtract on vector with CPU scalar (both)...
361Testing inplace multiply-subtract on vector with CPU scalar...
362Testing multiply-subtract on vector with GPU scalar (right)...
363Testing multiply-subtract on vector with GPU scalar (left)...
364Testing multiply-subtract on vector with GPU scalar (both)...
365Testing inplace multiply-subtract on vector with GPU scalar (both, adding)...
366Testing inplace multiply-subtract on vector with GPU scalar (both, subtracting)...
367Testing inplace multiply-subtract on vector with GPU scalar...
368Testing division-subtract on vector with CPU scalar (right)...
369Testing division-subtract on vector with CPU scalar (left)...
370Testing division-subtract on vector with CPU scalar (both)...
371Testing inplace division-subtract on vector with CPU scalar...
372Testing inplace division-subtract on vector with GPU scalar...
373Testing division-subtract on vector with GPU scalar (right)...
374Testing division-subtract on vector with GPU scalar (left)...
375Testing division-subtract on vector with GPU scalar (both)...
376Testing inplace division-subtract on vector with GPU scalar (both, adding)...
377Testing inplace division-subtract on vector with GPU scalar (both, subtracting)...
378Testing multiply-division-subtract on vector with GPU scalar...
379Testing division-multiply-subtract on vector with GPU scalar...
380Testing inplace multiply-division-subtract on vector with GPU scalar (adding)...
381Testing inplace division-multiply-subtract on vector with GPU scalar (adding)...
382Testing inplace multiply-division-subtract on vector with GPU scalar (subtracting)...
383Testing inplace division-multiply-subtract on vector with GPU scalar (subtracting)...
384Testing inplace division-subtract on vector with GPU scalar...
385Testing three vector additions...
386Testing complicated vector expression with CPU scalar...
387Testing complicated vector expression with GPU scalar...
388Testing swap...
389Testing unary operator-...
390Testing elementwise multiplication...
391 v1 = element_prod(v1, v2);
392 v1 += element_prod(v1, v2);
393 v1 -= element_prod(v1, v2);
394 v1 = element_prod(v1 + v2, v2);
395 v1 += element_prod(v1 + v2, v2);
396 v1 -= element_prod(v1 + v2, v2);
397 v1 = element_prod(v1, v2 + v1);
398 v1 += element_prod(v1, v2 + v1);
399 v1 -= element_prod(v1, v2 + v1);
400 v1 = element_prod(v1 + v2, v2 + v1);
401 v1 += element_prod(v1 + v2, v2 + v1);
402 v1 -= element_prod(v1 + v2, v2 + v1);
403Testing elementwise division...
404Testing elementwise power function...
405Testing unary elementwise operations...
406Testing another complicated vector expression with CPU scalars...
407Testing another complicated vector expression with GPU scalars...
408Testing lenghty sum of scaled vectors...
409 ** vcl_v1 = range, vcl_v2 = range **
410Checking for zero_vector initializer...
411Checking for scalar_vector initializer...
412Checking for unit_vector initializer...
413Checking for successful copy...
414Testing inner_prod...
415Testing norm_1...
416Testing norm_2...
417Testing norm_inf...
418Testing index_norm_inf...
419Testing assignments...
420Testing scaling with CPU scalar...
421Testing scaling with GPU scalar...
422Testing scaling with scalar expression...
423Testing shrinking with CPU scalar...
424Testing shrinking with GPU scalar...
425Testing add on vector...
426Checking for successful copy...
427Testing add on vector with flipsign...
428Testing inplace-add on vector...
429Testing assignment to vector with vector multiplied by scalar expression...
430Testing sub on vector...
431Testing inplace-sub on vector...
432Testing multiply-add on vector with CPU scalar (right)...
433Testing multiply-add on vector with CPU scalar (left)...
434Testing multiply-add on vector with CPU scalar (both)...
435Testing inplace multiply-add on vector with CPU scalar...
436Testing multiply-add on vector with GPU scalar (right)...
437Testing multiply-add on vector with GPU scalar (left)...
438Testing multiply-add on vector with GPU scalar (both)...
439Testing inplace multiply-add on vector with GPU scalar (both, adding)...
440Testing inplace multiply-add on vector with GPU scalar (both, subtracting)...
441Testing inplace multiply-add on vector with GPU scalar...
442Testing division-add on vector with CPU scalar (right)...
443Testing division-add on vector with CPU scalar (left)...
444Testing division-add on vector with CPU scalar (both)...
445Testing division-multiply-add on vector with CPU scalar...
446Testing multiply-division-add on vector with CPU scalar...
447Testing inplace division-add on vector with CPU scalar...
448Testing division-add on vector with GPU scalar (right)...
449Testing division-add on vector with GPU scalar (left)...
450Testing division-add on vector with GPU scalar (both)...
451Testing inplace division-add on vector with GPU scalar (both, adding)...
452Testing inplace division-add on vector with GPU scalar (both, subtracting)...
453Testing inplace division-multiply-add on vector with GPU scalar (adding)...
454Testing inplace multiply-division-add on vector with GPU scalar (subtracting)...
455Testing inplace division-add on vector with GPU scalar...
456Testing multiply-subtract on vector with CPU scalar (right)...
457Testing multiply-subtract on vector with CPU scalar (left)...
458Testing multiply-subtract on vector with CPU scalar (both)...
459Testing inplace multiply-subtract on vector with CPU scalar...
460Testing multiply-subtract on vector with GPU scalar (right)...
461Testing multiply-subtract on vector with GPU scalar (left)...
462Testing multiply-subtract on vector with GPU scalar (both)...
463Testing inplace multiply-subtract on vector with GPU scalar (both, adding)...
464Testing inplace multiply-subtract on vector with GPU scalar (both, subtracting)...
465Testing inplace multiply-subtract on vector with GPU scalar...
466Testing division-subtract on vector with CPU scalar (right)...
467Testing division-subtract on vector with CPU scalar (left)...
468Testing division-subtract on vector with CPU scalar (both)...
469Testing inplace division-subtract on vector with CPU scalar...
470Testing inplace division-subtract on vector with GPU scalar...
471Testing division-subtract on vector with GPU scalar (right)...
472Testing division-subtract on vector with GPU scalar (left)...
473Testing division-subtract on vector with GPU scalar (both)...
474Testing inplace division-subtract on vector with GPU scalar (both, adding)...
475Testing inplace division-subtract on vector with GPU scalar (both, subtracting)...
476Testing multiply-division-subtract on vector with GPU scalar...
477Testing division-multiply-subtract on vector with GPU scalar...
478Testing inplace multiply-division-subtract on vector with GPU scalar (adding)...
479Testing inplace division-multiply-subtract on vector with GPU scalar (adding)...
480Testing inplace multiply-division-subtract on vector with GPU scalar (subtracting)...
481Testing inplace division-multiply-subtract on vector with GPU scalar (subtracting)...
482Testing inplace division-subtract on vector with GPU scalar...
483Testing three vector additions...
484Testing complicated vector expression with CPU scalar...
485Testing complicated vector expression with GPU scalar...
486Testing swap...
487Testing unary operator-...
488Testing elementwise multiplication...
489 v1 = element_prod(v1, v2);
490 v1 += element_prod(v1, v2);
491 v1 -= element_prod(v1, v2);
492 v1 = element_prod(v1 + v2, v2);
493 v1 += element_prod(v1 + v2, v2);
494 v1 -= element_prod(v1 + v2, v2);
495 v1 = element_prod(v1, v2 + v1);
496 v1 += element_prod(v1, v2 + v1);
497 v1 -= element_prod(v1, v2 + v1);
498 v1 = element_prod(v1 + v2, v2 + v1);
499 v1 += element_prod(v1 + v2, v2 + v1);
500 v1 -= element_prod(v1 + v2, v2 + v1);
501Testing elementwise division...
502Testing elementwise power function...
503Testing unary elementwise operations...
504Testing another complicated vector expression with CPU scalars...
505Testing another complicated vector expression with GPU scalars...
506Testing lenghty sum of scaled vectors...
507 ** vcl_v1 = range, vcl_v2 = slice **
508Checking for zero_vector initializer...
509Checking for scalar_vector initializer...
510Checking for unit_vector initializer...
511Checking for successful copy...
512Testing inner_prod...
513Testing norm_1...
514Testing norm_2...
515Testing norm_inf...
516Testing index_norm_inf...
517Testing assignments...
518Testing scaling with CPU scalar...
519Testing scaling with GPU scalar...
520Testing scaling with scalar expression...
521Testing shrinking with CPU scalar...
522Testing shrinking with GPU scalar...
523Testing add on vector...
524Checking for successful copy...
525Testing add on vector with flipsign...
526Testing inplace-add on vector...
527Testing assignment to vector with vector multiplied by scalar expression...
528Testing sub on vector...
529Testing inplace-sub on vector...
530Testing multiply-add on vector with CPU scalar (right)...
531Testing multiply-add on vector with CPU scalar (left)...
532Testing multiply-add on vector with CPU scalar (both)...
533Testing inplace multiply-add on vector with CPU scalar...
534Testing multiply-add on vector with GPU scalar (right)...
535Testing multiply-add on vector with GPU scalar (left)...
536Testing multiply-add on vector with GPU scalar (both)...
537Testing inplace multiply-add on vector with GPU scalar (both, adding)...
538Testing inplace multiply-add on vector with GPU scalar (both, subtracting)...
539Testing inplace multiply-add on vector with GPU scalar...
540Testing division-add on vector with CPU scalar (right)...
541Testing division-add on vector with CPU scalar (left)...
542Testing division-add on vector with CPU scalar (both)...
543Testing division-multiply-add on vector with CPU scalar...
544Testing multiply-division-add on vector with CPU scalar...
545Testing inplace division-add on vector with CPU scalar...
546Testing division-add on vector with GPU scalar (right)...
547Testing division-add on vector with GPU scalar (left)...
548Testing division-add on vector with GPU scalar (both)...
549Testing inplace division-add on vector with GPU scalar (both, adding)...
550Testing inplace division-add on vector with GPU scalar (both, subtracting)...
551Testing inplace division-multiply-add on vector with GPU scalar (adding)...
552Testing inplace multiply-division-add on vector with GPU scalar (subtracting)...
553Testing inplace division-add on vector with GPU scalar...
554Testing multiply-subtract on vector with CPU scalar (right)...
555Testing multiply-subtract on vector with CPU scalar (left)...
556Testing multiply-subtract on vector with CPU scalar (both)...
557Testing inplace multiply-subtract on vector with CPU scalar...
558Testing multiply-subtract on vector with GPU scalar (right)...
559Testing multiply-subtract on vector with GPU scalar (left)...
560Testing multiply-subtract on vector with GPU scalar (both)...
561Testing inplace multiply-subtract on vector with GPU scalar (both, adding)...
562Testing inplace multiply-subtract on vector with GPU scalar (both, subtracting)...
563Testing inplace multiply-subtract on vector with GPU scalar...
564Testing division-subtract on vector with CPU scalar (right)...
565Testing division-subtract on vector with CPU scalar (left)...
566Testing division-subtract on vector with CPU scalar (both)...
567Testing inplace division-subtract on vector with CPU scalar...
568Testing inplace division-subtract on vector with GPU scalar...
569Testing division-subtract on vector with GPU scalar (right)...
570Testing division-subtract on vector with GPU scalar (left)...
571Testing division-subtract on vector with GPU scalar (both)...
572Testing inplace division-subtract on vector with GPU scalar (both, adding)...
573Testing inplace division-subtract on vector with GPU scalar (both, subtracting)...
574Testing multiply-division-subtract on vector with GPU scalar...
575Testing division-multiply-subtract on vector with GPU scalar...
576Testing inplace multiply-division-subtract on vector with GPU scalar (adding)...
577Testing inplace division-multiply-subtract on vector with GPU scalar (adding)...
578Testing inplace multiply-division-subtract on vector with GPU scalar (subtracting)...
579Testing inplace division-multiply-subtract on vector with GPU scalar (subtracting)...
580Testing inplace division-subtract on vector with GPU scalar...
581Testing three vector additions...
582Testing complicated vector expression with CPU scalar...
583Testing complicated vector expression with GPU scalar...
584Testing swap...
585Testing unary operator-...
586Testing elementwise multiplication...
587 v1 = element_prod(v1, v2);
588 v1 += element_prod(v1, v2);
589 v1 -= element_prod(v1, v2);
590 v1 = element_prod(v1 + v2, v2);
591 v1 += element_prod(v1 + v2, v2);
592 v1 -= element_prod(v1 + v2, v2);
593 v1 = element_prod(v1, v2 + v1);
594 v1 += element_prod(v1, v2 + v1);
595 v1 -= element_prod(v1, v2 + v1);
596 v1 = element_prod(v1 + v2, v2 + v1);
597 v1 += element_prod(v1 + v2, v2 + v1);
598 v1 -= element_prod(v1 + v2, v2 + v1);
599Testing elementwise division...
600Testing elementwise power function...
601Testing unary elementwise operations...
602Testing another complicated vector expression with CPU scalars...
603Testing another complicated vector expression with GPU scalars...
604Testing lenghty sum of scaled vectors...
605 ** vcl_v1 = slice, vcl_v2 = vector **
606Checking for zero_vector initializer...
607Checking for scalar_vector initializer...
608Checking for unit_vector initializer...
609Checking for successful copy...
610Testing inner_prod...
611Testing norm_1...
612Testing norm_2...
613Testing norm_inf...
614Testing index_norm_inf...
615Testing assignments...
616Testing scaling with CPU scalar...
617Testing scaling with GPU scalar...
618Testing scaling with scalar expression...
619Testing shrinking with CPU scalar...
620Testing shrinking with GPU scalar...
621Testing add on vector...
622Checking for successful copy...
623Testing add on vector with flipsign...
624Testing inplace-add on vector...
625Testing assignment to vector with vector multiplied by scalar expression...
626Testing sub on vector...
627Testing inplace-sub on vector...
628Testing multiply-add on vector with CPU scalar (right)...
629Testing multiply-add on vector with CPU scalar (left)...
630Testing multiply-add on vector with CPU scalar (both)...
631Testing inplace multiply-add on vector with CPU scalar...
632Testing multiply-add on vector with GPU scalar (right)...
633Testing multiply-add on vector with GPU scalar (left)...
634Testing multiply-add on vector with GPU scalar (both)...
635Testing inplace multiply-add on vector with GPU scalar (both, adding)...
636Testing inplace multiply-add on vector with GPU scalar (both, subtracting)...
637Testing inplace multiply-add on vector with GPU scalar...
638Testing division-add on vector with CPU scalar (right)...
639Testing division-add on vector with CPU scalar (left)...
640Testing division-add on vector with CPU scalar (both)...
641Testing division-multiply-add on vector with CPU scalar...
642Testing multiply-division-add on vector with CPU scalar...
643Testing inplace division-add on vector with CPU scalar...
644Testing division-add on vector with GPU scalar (right)...
645Testing division-add on vector with GPU scalar (left)...
646Testing division-add on vector with GPU scalar (both)...
647Testing inplace division-add on vector with GPU scalar (both, adding)...
648Testing inplace division-add on vector with GPU scalar (both, subtracting)...
649Testing inplace division-multiply-add on vector with GPU scalar (adding)...
650Testing inplace multiply-division-add on vector with GPU scalar (subtracting)...
651Testing inplace division-add on vector with GPU scalar...
652Testing multiply-subtract on vector with CPU scalar (right)...
653Testing multiply-subtract on vector with CPU scalar (left)...
654Testing multiply-subtract on vector with CPU scalar (both)...
655Testing inplace multiply-subtract on vector with CPU scalar...
656Testing multiply-subtract on vector with GPU scalar (right)...
657Testing multiply-subtract on vector with GPU scalar (left)...
658Testing multiply-subtract on vector with GPU scalar (both)...
659Testing inplace multiply-subtract on vector with GPU scalar (both, adding)...
660Testing inplace multiply-subtract on vector with GPU scalar (both, subtracting)...
661Testing inplace multiply-subtract on vector with GPU scalar...
662Testing division-subtract on vector with CPU scalar (right)...
663Testing division-subtract on vector with CPU scalar (left)...
664Testing division-subtract on vector with CPU scalar (both)...
665Testing inplace division-subtract on vector with CPU scalar...
666Testing inplace division-subtract on vector with GPU scalar...
667Testing division-subtract on vector with GPU scalar (right)...
668Testing division-subtract on vector with GPU scalar (left)...
669Testing division-subtract on vector with GPU scalar (both)...
670Testing inplace division-subtract on vector with GPU scalar (both, adding)...
671Testing inplace division-subtract on vector with GPU scalar (both, subtracting)...
672Testing multiply-division-subtract on vector with GPU scalar...
673Testing division-multiply-subtract on vector with GPU scalar...
674Testing inplace multiply-division-subtract on vector with GPU scalar (adding)...
675Testing inplace division-multiply-subtract on vector with GPU scalar (adding)...
676Testing inplace multiply-division-subtract on vector with GPU scalar (subtracting)...
677Testing inplace division-multiply-subtract on vector with GPU scalar (subtracting)...
678Testing inplace division-subtract on vector with GPU scalar...
679Testing three vector additions...
680Testing complicated vector expression with CPU scalar...
681Testing complicated vector expression with GPU scalar...
682Testing swap...
683Testing unary operator-...
684Testing elementwise multiplication...
685 v1 = element_prod(v1, v2);
686 v1 += element_prod(v1, v2);
687 v1 -= element_prod(v1, v2);
688 v1 = element_prod(v1 + v2, v2);
689 v1 += element_prod(v1 + v2, v2);
690 v1 -= element_prod(v1 + v2, v2);
691 v1 = element_prod(v1, v2 + v1);
692 v1 += element_prod(v1, v2 + v1);
693 v1 -= element_prod(v1, v2 + v1);
694 v1 = element_prod(v1 + v2, v2 + v1);
695 v1 += element_prod(v1 + v2, v2 + v1);
696 v1 -= element_prod(v1 + v2, v2 + v1);
697Testing elementwise division...
698Testing elementwise power function...
699Testing unary elementwise operations...
700Testing another complicated vector expression with CPU scalars...
701Testing another complicated vector expression with GPU scalars...
702Testing lenghty sum of scaled vectors...
703 ** vcl_v1 = slice, vcl_v2 = range **
704Checking for zero_vector initializer...
705Checking for scalar_vector initializer...
706Checking for unit_vector initializer...
707Checking for successful copy...
708Testing inner_prod...
709Testing norm_1...
710Testing norm_2...
711Testing norm_inf...
712Testing index_norm_inf...
713Testing assignments...
714Testing scaling with CPU scalar...
715Testing scaling with GPU scalar...
716Testing scaling with scalar expression...
717Testing shrinking with CPU scalar...
718Testing shrinking with GPU scalar...
719Testing add on vector...
720Checking for successful copy...
721Testing add on vector with flipsign...
722Testing inplace-add on vector...
723Testing assignment to vector with vector multiplied by scalar expression...
724Testing sub on vector...
725Testing inplace-sub on vector...
726Testing multiply-add on vector with CPU scalar (right)...
727Testing multiply-add on vector with CPU scalar (left)...
728Testing multiply-add on vector with CPU scalar (both)...
729Testing inplace multiply-add on vector with CPU scalar...
730Testing multiply-add on vector with GPU scalar (right)...
731Testing multiply-add on vector with GPU scalar (left)...
732Testing multiply-add on vector with GPU scalar (both)...
733Testing inplace multiply-add on vector with GPU scalar (both, adding)...
734Testing inplace multiply-add on vector with GPU scalar (both, subtracting)...
735Testing inplace multiply-add on vector with GPU scalar...
736Testing division-add on vector with CPU scalar (right)...
737Testing division-add on vector with CPU scalar (left)...
738Testing division-add on vector with CPU scalar (both)...
739Testing division-multiply-add on vector with CPU scalar...
740Testing multiply-division-add on vector with CPU scalar...
741Testing inplace division-add on vector with CPU scalar...
742Testing division-add on vector with GPU scalar (right)...
743Testing division-add on vector with GPU scalar (left)...
744Testing division-add on vector with GPU scalar (both)...
745Testing inplace division-add on vector with GPU scalar (both, adding)...
746Testing inplace division-add on vector with GPU scalar (both, subtracting)...
747Testing inplace division-multiply-add on vector with GPU scalar (adding)...
748Testing inplace multiply-division-add on vector with GPU scalar (subtracting)...
749Testing inplace division-add on vector with GPU scalar...
750Testing multiply-subtract on vector with CPU scalar (right)...
751Testing multiply-subtract on vector with CPU scalar (left)...
752Testing multiply-subtract on vector with CPU scalar (both)...
753Testing inplace multiply-subtract on vector with CPU scalar...
754Testing multiply-subtract on vector with GPU scalar (right)...
755Testing multiply-subtract on vector with GPU scalar (left)...
756Testing multiply-subtract on vector with GPU scalar (both)...
757Testing inplace multiply-subtract on vector with GPU scalar (both, adding)...
758Testing inplace multiply-subtract on vector with GPU scalar (both, subtracting)...
759Testing inplace multiply-subtract on vector with GPU scalar...
760Testing division-subtract on vector with CPU scalar (right)...
761Testing division-subtract on vector with CPU scalar (left)...
762Testing division-subtract on vector with CPU scalar (both)...
763Testing inplace division-subtract on vector with CPU scalar...
764Testing inplace division-subtract on vector with GPU scalar...
765Testing division-subtract on vector with GPU scalar (right)...
766Testing division-subtract on vector with GPU scalar (left)...
767Testing division-subtract on vector with GPU scalar (both)...
768Testing inplace division-subtract on vector with GPU scalar (both, adding)...
769Testing inplace division-subtract on vector with GPU scalar (both, subtracting)...
770Testing multiply-division-subtract on vector with GPU scalar...
771Testing division-multiply-subtract on vector with GPU scalar...
772Testing inplace multiply-division-subtract on vector with GPU scalar (adding)...
773Testing inplace division-multiply-subtract on vector with GPU scalar (adding)...
774Testing inplace multiply-division-subtract on vector with GPU scalar (subtracting)...
775Testing inplace division-multiply-subtract on vector with GPU scalar (subtracting)...
776Testing inplace division-subtract on vector with GPU scalar...
777Testing three vector additions...
778Testing complicated vector expression with CPU scalar...
779Testing complicated vector expression with GPU scalar...
780Testing swap...
781Testing unary operator-...
782Testing elementwise multiplication...
783 v1 = element_prod(v1, v2);
784 v1 += element_prod(v1, v2);
785 v1 -= element_prod(v1, v2);
786 v1 = element_prod(v1 + v2, v2);
787 v1 += element_prod(v1 + v2, v2);
788 v1 -= element_prod(v1 + v2, v2);
789 v1 = element_prod(v1, v2 + v1);
790 v1 += element_prod(v1, v2 + v1);
791 v1 -= element_prod(v1, v2 + v1);
792 v1 = element_prod(v1 + v2, v2 + v1);
793 v1 += element_prod(v1 + v2, v2 + v1);
794 v1 -= element_prod(v1 + v2, v2 + v1);
795Testing elementwise division...
796Testing elementwise power function...
797Testing unary elementwise operations...
798Testing another complicated vector expression with CPU scalars...
799Testing another complicated vector expression with GPU scalars...
800Testing lenghty sum of scaled vectors...
801 ** vcl_v1 = slice, vcl_v2 = slice **
802Checking for zero_vector initializer...
803Checking for scalar_vector initializer...
804Checking for unit_vector initializer...
805Checking for successful copy...
806Testing inner_prod...
807Testing norm_1...
808Testing norm_2...
809Testing norm_inf...
810Testing index_norm_inf...
811Testing assignments...
812Testing scaling with CPU scalar...
813Testing scaling with GPU scalar...
814Testing scaling with scalar expression...
815Testing shrinking with CPU scalar...
816Testing shrinking with GPU scalar...
817Testing add on vector...
818Checking for successful copy...
819Testing add on vector with flipsign...
820Testing inplace-add on vector...
821Testing assignment to vector with vector multiplied by scalar expression...
822Testing sub on vector...
823Testing inplace-sub on vector...
824Testing multiply-add on vector with CPU scalar (right)...
825Testing multiply-add on vector with CPU scalar (left)...
826Testing multiply-add on vector with CPU scalar (both)...
827Testing inplace multiply-add on vector with CPU scalar...
828Testing multiply-add on vector with GPU scalar (right)...
829Testing multiply-add on vector with GPU scalar (left)...
830Testing multiply-add on vector with GPU scalar (both)...
831Testing inplace multiply-add on vector with GPU scalar (both, adding)...
832Testing inplace multiply-add on vector with GPU scalar (both, subtracting)...
833Testing inplace multiply-add on vector with GPU scalar...
834Testing division-add on vector with CPU scalar (right)...
835Testing division-add on vector with CPU scalar (left)...
836Testing division-add on vector with CPU scalar (both)...
837Testing division-multiply-add on vector with CPU scalar...
838Testing multiply-division-add on vector with CPU scalar...
839Testing inplace division-add on vector with CPU scalar...
840Testing division-add on vector with GPU scalar (right)...
841Testing division-add on vector with GPU scalar (left)...
842Testing division-add on vector with GPU scalar (both)...
843Testing inplace division-add on vector with GPU scalar (both, adding)...
844Testing inplace division-add on vector with GPU scalar (both, subtracting)...
845Testing inplace division-multiply-add on vector with GPU scalar (adding)...
846Testing inplace multiply-division-add on vector with GPU scalar (subtracting)...
847Testing inplace division-add on vector with GPU scalar...
848Testing multiply-subtract on vector with CPU scalar (right)...
849Testing multiply-subtract on vector with CPU scalar (left)...
850Testing multiply-subtract on vector with CPU scalar (both)...
851Testing inplace multiply-subtract on vector with CPU scalar...
852Testing multiply-subtract on vector with GPU scalar (right)...
853Testing multiply-subtract on vector with GPU scalar (left)...
854Testing multiply-subtract on vector with GPU scalar (both)...
855Testing inplace multiply-subtract on vector with GPU scalar (both, adding)...
856Testing inplace multiply-subtract on vector with GPU scalar (both, subtracting)...
857Testing inplace multiply-subtract on vector with GPU scalar...
858Testing division-subtract on vector with CPU scalar (right)...
859Testing division-subtract on vector with CPU scalar (left)...
860Testing division-subtract on vector with CPU scalar (both)...
861Testing inplace division-subtract on vector with CPU scalar...
862Testing inplace division-subtract on vector with GPU scalar...
863Testing division-subtract on vector with GPU scalar (right)...
864Testing division-subtract on vector with GPU scalar (left)...
865Testing division-subtract on vector with GPU scalar (both)...
866Testing inplace division-subtract on vector with GPU scalar (both, adding)...
867Testing inplace division-subtract on vector with GPU scalar (both, subtracting)...
868Testing multiply-division-subtract on vector with GPU scalar...
869Testing division-multiply-subtract on vector with GPU scalar...
870Testing inplace multiply-division-subtract on vector with GPU scalar (adding)...
871Testing inplace division-multiply-subtract on vector with GPU scalar (adding)...
872Testing inplace multiply-division-subtract on vector with GPU scalar (subtracting)...
873Testing inplace division-multiply-subtract on vector with GPU scalar (subtracting)...
874Testing inplace division-subtract on vector with GPU scalar...
875Testing three vector additions...
876Testing complicated vector expression with CPU scalar...
877Testing complicated vector expression with GPU scalar...
878Testing swap...
879Testing unary operator-...
880Testing elementwise multiplication...
881 v1 = element_prod(v1, v2);
882 v1 += element_prod(v1, v2);
883 v1 -= element_prod(v1, v2);
884 v1 = element_prod(v1 + v2, v2);
885 v1 += element_prod(v1 + v2, v2);
886 v1 -= element_prod(v1 + v2, v2);
887 v1 = element_prod(v1, v2 + v1);
888 v1 += element_prod(v1, v2 + v1);
889 v1 -= element_prod(v1, v2 + v1);
890 v1 = element_prod(v1 + v2, v2 + v1);
891 v1 += element_prod(v1 + v2, v2 + v1);
892 v1 -= element_prod(v1 + v2, v2 + v1);
893Testing elementwise division...
894Testing elementwise power function...
895Testing unary elementwise operations...
896Testing another complicated vector expression with CPU scalars...
897Testing another complicated vector expression with GPU scalars...
898Testing lenghty sum of scaled vectors...
899# Test passed
900
901----------------------------------------------
902
903
904------- Test completed --------
905
906