Lines Matching full:v1
22 void test_with (VP &v1, VP &v2, VP &v3) const { in test_with()
29 initialize_vector (v1); in test_with()
31 v1 = v2; in test_with()
32 std::cout << "v1 = v2 = " << v1 << std::endl; in test_with()
33 v1.assign_temporary (v2); in test_with()
34 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_with()
35 v1.swap (v2); in test_with()
36 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with()
39 v1 = ublas::zero_vector<value_type> (v1.size ()); in test_with()
40 std::cout << "v1.zero_vector = " << v1 << std::endl; in test_with()
41 v1 = v2; in test_with()
44 initialize_vector (v1); in test_with()
45 v2 = - v1; in test_with()
46 std::cout << "- v1 = " << v2 << std::endl; in test_with()
47 v2 = ublas::conj (v1); in test_with()
48 std::cout << "conj (v1) = " << v2 << std::endl; in test_with()
51 initialize_vector (v1); in test_with()
53 v3 = v1 + v2; in test_with()
54 std::cout << "v1 + v2 = " << v3 << std::endl; in test_with()
56 v3 = v1 - v2; in test_with()
57 std::cout << "v1 - v2 = " << v3 << std::endl; in test_with()
61 initialize_vector (v1); in test_with()
62 v2 = value_type (1.) * v1; in test_with()
63 std::cout << "1. * v1 = " << v2 << std::endl; in test_with()
64 // v2 = t * v1; in test_with()
65 std::cout << "N * v1 = " << v2 << std::endl; in test_with()
66 initialize_vector (v1); in test_with()
67 // v2 = v1 * value_type (1.); in test_with()
68 std::cout << "v1 * 1. = " << v2 << std::endl; in test_with()
69 // v2 = v1 * t; in test_with()
70 std::cout << "v1 * N = " << v2 << std::endl; in test_with()
73 initialize_vector (v1); in test_with()
75 v2 += v1; in test_with()
76 std::cout << "v2 += v1 = " << v2 << std::endl; in test_with()
77 v2 -= v1; in test_with()
78 std::cout << "v2 -= v1 = " << v2 << std::endl; in test_with()
79 v2 = v2 + v1; in test_with()
80 std::cout << "v2 = v2 + v1 = " << v2 << std::endl; in test_with()
81 v2 = v2 - v1; in test_with()
82 std::cout << "v2 = v2 - v1 = " << v2 << std::endl; in test_with()
83 v1 *= value_type (1.); in test_with()
84 std::cout << "v1 *= 1. = " << v1 << std::endl; in test_with()
85 v1 *= t; in test_with()
86 std::cout << "v1 *= N = " << v1 << std::endl; in test_with()
89 initialize_vector (v1); in test_with()
90 t = ublas::sum (v1); in test_with()
91 std::cout << "sum (v1) = " << t << std::endl; in test_with()
92 n = ublas::norm_1 (v1); in test_with()
93 std::cout << "norm_1 (v1) = " << n << std::endl; in test_with()
94 n = ublas::norm_2 (v1); in test_with()
95 std::cout << "norm_2 (v1) = " << n << std::endl; in test_with()
96 n = ublas::norm_inf (v1); in test_with()
97 std::cout << "norm_inf (v1) = " << n << std::endl; in test_with()
99 i = ublas::index_norm_inf (v1); in test_with()
100 std::cout << "index_norm_inf (v1) = " << i << std::endl; in test_with()
103 initialize_vector (v1); in test_with()
105 t = ublas::inner_prod (v1, v2); in test_with()
106 std::cout << "inner_prod (v1, v2) = " << t << std::endl; in test_with()
111 V v1 (N), v2 (N), v3 (N); in operator ()() local
112 test_with (v1, v2, v3); in operator ()()
115 ublas::vector_range<V> vr1 (v1, ublas::range (0, N)), in operator ()()
122 ublas::vector_slice<V> vs1 (v1, ublas::slice (0, 1, N)), in operator ()()