• Home
  • Raw
  • Download

Lines Matching full:v1

21     void test_container_with (VP &v1) const {  in test_container_with()
24 v1.insert_element (0, 55); in test_container_with()
25 v1.erase_element (1); in test_container_with()
26 v1.clear (); in test_container_with()
30 void test_expression_with (VP &v1, VP &v2, VP &v3) const { in test_expression_with()
40 initialize_vector (v1); in test_expression_with()
42 v1 = v2; in test_expression_with()
43 std::cout << "v1 = v2 = " << v1 << std::endl; in test_expression_with()
44 v1.assign_temporary (v2); in test_expression_with()
45 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_expression_with()
46 v1.swap (v2); in test_expression_with()
47 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_expression_with()
50 v1 = ublas::zero_vector<> (v1.size ()); in test_expression_with()
51 std::cout << "v1.zero_vector = " << v1 << std::endl; in test_expression_with()
52 v1 = v2; in test_expression_with()
56 initialize_vector (v1); in test_expression_with()
58 project (v1, ublas::range(0,1)) = project (v2, ublas::range(0,1)); in test_expression_with()
59 project (v1, ublas::range(0,1)) = project (v2, ublas::slice(0,1,1)); in test_expression_with()
60 project (v1, ublas::slice(2,-1,2)) = project (v2, ublas::slice(0,1,2)); in test_expression_with()
61 project (v1, ublas::slice(2,-1,2)) = project (v2, ublas::range(0,2)); in test_expression_with()
62 std::cout << "v1 = range/slice " << v1 << std::endl; in test_expression_with()
66 initialize_vector (v1); in test_expression_with()
67 v2 = - v1; in test_expression_with()
68 std::cout << "- v1 = " << v2 << std::endl; in test_expression_with()
69 v2 = ublas::conj (v1); in test_expression_with()
70 std::cout << "conj (v1) = " << v2 << std::endl; in test_expression_with()
73 initialize_vector (v1); in test_expression_with()
75 v3 = v1 + v2; in test_expression_with()
76 std::cout << "v1 + v2 = " << v3 << std::endl; in test_expression_with()
77 v3 = v1 - v2; in test_expression_with()
78 std::cout << "v1 - v2 = " << v3 << std::endl; in test_expression_with()
79 v3 = ublas::element_prod (v1, v2); in test_expression_with()
80 std::cout << "element_prod (v1, v2) = " << v3 << std::endl; in test_expression_with()
84 initialize_vector (v1); in test_expression_with()
85 v2 = value_type (1.) * v1; in test_expression_with()
86 std::cout << "1. * v1 = " << v2 << std::endl; in test_expression_with()
87 v2 = t * v1; in test_expression_with()
88 std::cout << "N * v1 = " << v2 << std::endl; in test_expression_with()
89 initialize_vector (v1); in test_expression_with()
90 v2 = v1 * value_type (1.); in test_expression_with()
91 std::cout << "v1 * 1. = " << v2 << std::endl; in test_expression_with()
92 v2 = v1 * t; in test_expression_with()
93 std::cout << "v1 * value_type(N) = " << v2 << std::endl; in test_expression_with()
95 v2 = v1 * N; in test_expression_with()
97 std::cout << "v1 * N = " << v2 << std::endl; in test_expression_with()
100 initialize_vector (v1); in test_expression_with()
102 v2 += v1; in test_expression_with()
103 std::cout << "v2 += v1 = " << v2 << std::endl; in test_expression_with()
104 v2 -= v1; in test_expression_with()
105 std::cout << "v2 -= v1 = " << v2 << std::endl; in test_expression_with()
106 v2 = v2 + v1; in test_expression_with()
107 std::cout << "v2 = v2 + v1 = " << v2 << std::endl; in test_expression_with()
108 v2 = v2 - v1; in test_expression_with()
109 std::cout << "v2 = v2 - v1 = " << v2 << std::endl; in test_expression_with()
110 v1 *= value_type (1.); in test_expression_with()
111 std::cout << "v1 *= 1. = " << v1 << std::endl; in test_expression_with()
112 v1 *= t; in test_expression_with()
113 std::cout << "v1 *= value_type(N) = " << v1 << std::endl; in test_expression_with()
115 v1 *= N; in test_expression_with()
116 std::cout << "v1 *= N = " << v1 << std::endl; in test_expression_with()
119 initialize_vector (v1); in test_expression_with()
120 t = ublas::sum (v1); in test_expression_with()
121 std::cout << "sum (v1) = " << t << std::endl; in test_expression_with()
122 n = ublas::norm_1 (v1); in test_expression_with()
123 std::cout << "norm_1 (v1) = " << n << std::endl; in test_expression_with()
124 n = ublas::norm_2 (v1); in test_expression_with()
125 std::cout << "norm_2 (v1) = " << n << std::endl; in test_expression_with()
126 n = ublas::norm_inf (v1); in test_expression_with()
127 std::cout << "norm_inf (v1) = " << n << std::endl; in test_expression_with()
129 i = ublas::index_norm_inf (v1); in test_expression_with()
130 std::cout << "index_norm_inf (v1) = " << i << std::endl; in test_expression_with()
133 initialize_vector (v1); in test_expression_with()
135 t = ublas::inner_prod (v1, v2); in test_expression_with()
136 std::cout << "inner_prod (v1, v2) = " << t << std::endl; in test_expression_with()
139 initialize_vector (v1); in test_expression_with()
141 v1 = v1 * ublas::inner_prod (v1, v2); in test_expression_with()
142 std::cout << "v1 * inner_prod (v1, v2) = " << v1 << std::endl; in test_expression_with()
146 V v1 (N), v2 (N), v3 (N); in operator ()() local
147 test_expression_with (v1, v2, v3); in operator ()()
148 test_container_with (v1); in operator ()()
151 ublas::vector_range<V> vr1 (v1, ublas::range (0, N)), in operator ()()
158 ublas::vector_slice<V> vs1 (v1, ublas::slice (0, 1, N)), in operator ()()