Lines Matching refs:v1
26 void test_container_with(VP& v1) const in test_container_with()
30 v1.insert_element(0, 55); in test_container_with()
31 v1.erase_element(1); in test_container_with()
32 v1.clear(); in test_container_with()
36 void test_expression_with(VP& v1, VP& v2, VP& v3) const in test_expression_with()
47 initialize_vector(v1); in test_expression_with()
49 v1 = v2; in test_expression_with()
50 std::cout << "v1 = v2 = " << v1 << std::endl; in test_expression_with()
51 v1.assign_temporary(v2); in test_expression_with()
52 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_expression_with()
53 v1.swap(v2); in test_expression_with()
54 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_expression_with()
57 v1 = ublas::zero_vector<>(v1.size()); in test_expression_with()
58 std::cout << "v1.zero_vector = " << v1 << std::endl; in test_expression_with()
59 v1 = v2; in test_expression_with()
63 initialize_vector(v1); in test_expression_with()
65 project(v1, ublas::range(0, 1)) = project(v2, ublas::range(0, 1)); in test_expression_with()
66 project(v1, ublas::range(0, 1)) = project(v2, ublas::slice(0, 1, 1)); in test_expression_with()
67 project(v1, ublas::slice(2, -1, 2)) = project(v2, ublas::slice(0, 1, 2)); in test_expression_with()
68 project(v1, ublas::slice(2, -1, 2)) = project(v2, ublas::range(0, 2)); in test_expression_with()
69 std::cout << "v1 = range/slice " << v1 << std::endl; in test_expression_with()
73 initialize_vector(v1); in test_expression_with()
74 v2 = -v1; in test_expression_with()
76 v2 = ublas::conj(v1); in test_expression_with()
80 initialize_vector(v1); in test_expression_with()
82 v3 = v1 + v2; in test_expression_with()
84 v3 = v1 - v2; in test_expression_with()
86 v3 = ublas::element_prod(v1, v2); in test_expression_with()
91 initialize_vector(v1); in test_expression_with()
92 v2 = value_type(1.) * v1; in test_expression_with()
94 v2 = t * v1; in test_expression_with()
96 initialize_vector(v1); in test_expression_with()
97 v2 = v1 * value_type(1.); in test_expression_with()
99 v2 = v1 * t; in test_expression_with()
102 v2 = v1 * N; in test_expression_with()
107 initialize_vector(v1); in test_expression_with()
109 v2 += v1; in test_expression_with()
111 v2 -= v1; in test_expression_with()
113 v2 = v2 + v1; in test_expression_with()
115 v2 = v2 - v1; in test_expression_with()
117 v1 *= value_type(1.); in test_expression_with()
118 std::cout << "v1 *= 1. = " << v1 << std::endl; in test_expression_with()
119 v1 *= t; in test_expression_with()
120 std::cout << "v1 *= value_type(N) = " << v1 << std::endl; in test_expression_with()
122 v1 *= N; in test_expression_with()
123 std::cout << "v1 *= N = " << v1 << std::endl; in test_expression_with()
126 initialize_vector(v1); in test_expression_with()
127 t = ublas::sum(v1); in test_expression_with()
129 n = ublas::norm_1(v1); in test_expression_with()
131 n = ublas::norm_2(v1); in test_expression_with()
133 n = ublas::norm_inf(v1); in test_expression_with()
136 i = ublas::index_norm_inf(v1); in test_expression_with()
140 initialize_vector(v1); in test_expression_with()
142 t = ublas::inner_prod(v1, v2); in test_expression_with()
146 initialize_vector(v1); in test_expression_with()
148 v1 = v1 * ublas::inner_prod(v1, v2); in test_expression_with()
149 std::cout << "v1 * inner_prod (v1, v2) = " << v1 << std::endl; in test_expression_with()
154 V v1(N), v2(N), v3(N); in operator ()() local
155 test_expression_with(v1, v2, v3); in operator ()()
156 test_container_with(v1); in operator ()()
159 ublas::vector_range<V> vr1(v1, ublas::range(0, N)), in operator ()()
166 ublas::vector_slice<V> vs1(v1, ublas::slice(0, 1, N)), in operator ()()