Lines Matching refs:v2
30 void test_expression_with (VP &v1, VP &v2, VP &v3) const { in test_expression_with()
41 initialize_vector (v2); in test_expression_with()
42 v1 = v2; in test_expression_with()
44 v1.assign_temporary (v2); 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()
52 v1 = v2; in test_expression_with()
57 initialize_vector (v2); 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()
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()
74 initialize_vector (v2); in test_expression_with()
75 v3 = v1 + v2; in test_expression_with()
77 v3 = v1 - v2; in test_expression_with()
79 v3 = ublas::element_prod (v1, v2); 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()
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()
101 initialize_vector (v2); 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()
134 initialize_vector (v2); in test_expression_with()
135 t = ublas::inner_prod (v1, v2); in test_expression_with()
140 initialize_vector (v2); in test_expression_with()
141 v1 = v1 * ublas::inner_prod (v1, v2); in test_expression_with()
146 V v1 (N), v2 (N), v3 (N); in operator ()() local
147 test_expression_with (v1, v2, v3); in operator ()()
152 vr2 (v2, ublas::range (0, N)), in operator ()()
159 vs2 (v2, ublas::slice (0, 1, N)), in operator ()()