• Home
  • Raw
  • Download

Lines Matching refs:v2

36    void test_expression_with(VP& v1, VP& v2, VP& v3) const  in test_expression_with()
48 initialize_vector(v2); in test_expression_with()
49 v1 = v2; in test_expression_with()
51 v1.assign_temporary(v2); 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()
59 v1 = v2; in test_expression_with()
64 initialize_vector(v2); 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()
74 v2 = -v1; in test_expression_with()
75 std::cout << "- v1 = " << v2 << std::endl; in test_expression_with()
76 v2 = ublas::conj(v1); in test_expression_with()
77 std::cout << "conj (v1) = " << v2 << std::endl; in test_expression_with()
81 initialize_vector(v2); 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()
92 v2 = value_type(1.) * v1; in test_expression_with()
93 std::cout << "1. * v1 = " << v2 << std::endl; in test_expression_with()
94 v2 = t * v1; in test_expression_with()
95 std::cout << "N * v1 = " << v2 << std::endl; in test_expression_with()
97 v2 = v1 * value_type(1.); in test_expression_with()
98 std::cout << "v1 * 1. = " << v2 << std::endl; in test_expression_with()
99 v2 = v1 * t; in test_expression_with()
100 std::cout << "v1 * value_type(N) = " << v2 << std::endl; in test_expression_with()
102 v2 = v1 * N; in test_expression_with()
104 std::cout << "v1 * N = " << v2 << std::endl; in test_expression_with()
108 initialize_vector(v2); in test_expression_with()
109 v2 += v1; in test_expression_with()
110 std::cout << "v2 += v1 = " << v2 << std::endl; in test_expression_with()
111 v2 -= v1; in test_expression_with()
112 std::cout << "v2 -= v1 = " << v2 << std::endl; in test_expression_with()
113 v2 = v2 + v1; in test_expression_with()
114 std::cout << "v2 = v2 + v1 = " << v2 << std::endl; in test_expression_with()
115 v2 = v2 - v1; in test_expression_with()
116 std::cout << "v2 = v2 - v1 = " << v2 << std::endl; in test_expression_with()
141 initialize_vector(v2); in test_expression_with()
142 t = ublas::inner_prod(v1, v2); in test_expression_with()
147 initialize_vector(v2); in test_expression_with()
148 v1 = v1 * ublas::inner_prod(v1, v2); in test_expression_with()
154 V v1(N), v2(N), v3(N); in operator ()() local
155 test_expression_with(v1, v2, v3); in operator ()()
160 vr2(v2, ublas::range(0, N)), in operator ()()
167 vs2(v2, ublas::slice(0, 1, N)), in operator ()()