• Home
  • Raw
  • Download

Lines Matching refs:v1

23     void test_with (VP &v1, VP &v2, VP &v3) const {  in test_with()
33 initialize_vector (v1); in test_with()
35 v1 = v2; in test_with()
36 std::cout << "v1 = v2 = " << v1 << std::endl; in test_with()
37 v1.assign_temporary (v2); in test_with()
38 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_with()
39 v1.swap (v2); in test_with()
40 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with()
43 v1 = ublas::zero_vector<> (v1.size ()); in test_with()
44 std::cout << "v1.zero_vector = " << v1 << std::endl; in test_with()
45 v1 = v2; in test_with()
49 initialize_vector (v1); in test_with()
51 project (v1, ublas::range(0,1)) = project (v2, ublas::range(0,1)); in test_with()
52 project (v1, ublas::range(0,1)) = project (v2, ublas::slice(0,1,1)); in test_with()
53 project (v1, ublas::slice(2,-1,2)) = project (v2, ublas::slice(0,1,2)); in test_with()
54 project (v1, ublas::slice(2,-1,2)) = project (v2, ublas::range(0,2)); in test_with()
55 std::cout << "v1 = range/slice " << v1 << std::endl; in test_with()
59 initialize_vector (v1); in test_with()
60 v2 = - v1; in test_with()
62 v2 = ublas::conj (v1); in test_with()
66 initialize_vector (v1); in test_with()
69 v3 = v1 + v2; in test_with()
72 v3 = v1 - v2; in test_with()
77 initialize_vector (v1); in test_with()
78 v2 = value_type (1.) * v1; in test_with()
80 v2 = t * v1; in test_with()
82 initialize_vector (v1); in test_with()
83 v2 = v1 * value_type (1.); in test_with()
85 v2 = v1 * t; in test_with()
89 initialize_vector (v1); in test_with()
91 v2 += v1; in test_with()
93 v2 -= v1; in test_with()
95 v2 = v2 + v1; in test_with()
97 v2 = v2 - v1; in test_with()
99 v1 *= value_type (1.); in test_with()
100 std::cout << "v1 *= 1. = " << v1 << std::endl; in test_with()
101 v1 *= t; in test_with()
102 std::cout << "v1 *= N = " << v1 << std::endl; in test_with()
105 initialize_vector (v1); in test_with()
106 t = ublas::sum (v1); in test_with()
108 n = ublas::norm_1 (v1); in test_with()
110 n = ublas::norm_2 (v1); in test_with()
112 n = ublas::norm_inf (v1); in test_with()
115 i = ublas::index_norm_inf (v1); in test_with()
119 initialize_vector (v1); in test_with()
121 t = ublas::inner_prod (v1, v2); in test_with()
127 V v1 (N, N), v2 (N, N), v3 (N, N); in operator ()() local
128 test_with (v1, v2, v3); in operator ()()
131 ublas::vector_range<V> vr1 (v1, ublas::range (0, N)), in operator ()()
138 ublas::vector_slice<V> vs1 (v1, ublas::slice (0, 1, N)), in operator ()()