Searched refs:v1 (Results 1 - 25 of 1357) sorted by relevance

1234567891011>>

/external/stlport/test/unit/
H A Dperm_test.cpp44 int v1[3] = { 0, 1, 2 }; local
45 prev_permutation(v1, v1 + 3);
47 CPPUNIT_ASSERT(v1[0]==2);
48 CPPUNIT_ASSERT(v1[1]==1);
49 CPPUNIT_ASSERT(v1[2]==0);
53 vector <int> v1(3);
54 __iota(v1.begin(), v1.end(), 0);
56 prev_permutation(v1
137 int v1[3] = { 0, 1, 2 }; local
[all...]
/external/libcxx/test/numerics/numarray/template.gslice.array/gslice.array.fill/
H A Dassign_value.pass.cpp25 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
30 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])),
32 assert(v1.size() == 41);
33 assert(v1[ 0] == 0);
34 assert(v1[ 1] == 1);
35 assert(v1[ 2] == 2);
36 assert(v1[ 3] == 51);
37 assert(v1[ 4] == 51);
38 assert(v1[ 5] == 51);
39 assert(v1[
[all...]
/external/libcxx/test/numerics/numarray/template.indirect.array/indirect.array.assign/
H A Dvalarray.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] = v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 0);
40 assert(v1[ 4] == -1);
41 assert(v1[ 5] == -2);
42 assert(v1[
[all...]
/external/libcxx/test/numerics/numarray/template.indirect.array/indirect.array.comp.assign/
H A Daddition.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] += v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 3);
40 assert(v1[ 4] == 3);
41 assert(v1[ 5] == 3);
42 assert(v1[
[all...]
H A Dand.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] &= v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 1);
40 assert(v1[ 4] == 0);
41 assert(v1[ 5] == 1);
42 assert(v1[
[all...]
H A Ddivide.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] /= v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 3);
40 assert(v1[ 4] == 2);
41 assert(v1[ 5] == 1);
42 assert(v1[
[all...]
H A Dmodulo.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] %= v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 0);
40 assert(v1[ 4] == 0);
41 assert(v1[ 5] == 2);
42 assert(v1[
[all...]
H A Dmultiply.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] *= v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 3);
40 assert(v1[ 4] == 8);
41 assert(v1[ 5] == 15);
42 assert(v1[
[all...]
H A Dor.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] |= v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 3);
40 assert(v1[ 4] == 6);
41 assert(v1[ 5] == 7);
42 assert(v1[
[all...]
H A Dshift_left.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] <<= v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 6);
40 assert(v1[ 4] == 16);
41 assert(v1[ 5] == 40);
42 assert(v1[
[all...]
H A Dshift_right.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] >>= v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 1);
40 assert(v1[ 4] == 1);
41 assert(v1[ 5] == 0);
42 assert(v1[
[all...]
H A Dsubtraction.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] -= v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 2);
40 assert(v1[ 4] == 2);
41 assert(v1[ 5] == 2);
42 assert(v1[
[all...]
H A Dxor.pass.cpp31 std::valarray<int> v1(a1, N1);
34 v1[ia] ^= v2;
35 assert(v1.size() == 41);
36 assert(v1[ 0] == 0);
37 assert(v1[ 1] == 1);
38 assert(v1[ 2] == 2);
39 assert(v1[ 3] == 2);
40 assert(v1[ 4] == 6);
41 assert(v1[ 5] == 6);
42 assert(v1[
[all...]
/external/libcxx/test/numerics/numarray/template.indirect.array/indirect.array.fill/
H A Dassign_value.pass.cpp29 std::valarray<int> v1(a1, N1);
31 v1[ia] = 51;
32 assert(v1.size() == 41);
33 assert(v1[ 0] == 0);
34 assert(v1[ 1] == 1);
35 assert(v1[ 2] == 2);
36 assert(v1[ 3] == 51);
37 assert(v1[ 4] == 51);
38 assert(v1[ 5] == 51);
39 assert(v1[
[all...]
/external/libcxx/test/numerics/numarray/template.slice.array/slice.arr.assign/
H A Dvalarray.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] = v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == -1);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == -2);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
/external/libcxx/test/numerics/numarray/template.slice.array/slice.arr.comp.assign/
H A Daddition.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] += v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == 0);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == 2);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
H A Dand.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] &= v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == 1);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == 0);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
H A Ddivide.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] /= v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == -1);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == -2);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
H A Dmodulo.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] %= v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == 0);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == 0);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
H A Dmultiply.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] *= v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == -1);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == -8);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
H A Dor.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] |= v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == 1);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == 6);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
H A Dshift_left.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] <<= v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == 2);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == 16);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
H A Dshift_right.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] >>= v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == 0);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == 1);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
H A Dsubtraction.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] -= v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == 2);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == 6);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]
H A Dxor.pass.cpp23 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0]));
25 v1[std::slice(1, 5, 3)] ^= v2;
26 assert(v1.size() == 16);
27 assert(v1[ 0] == 0);
28 assert(v1[ 1] == 0);
29 assert(v1[ 2] == 2);
30 assert(v1[ 3] == 3);
31 assert(v1[ 4] == 6);
32 assert(v1[ 5] == 5);
33 assert(v1[
[all...]

Completed in 255 milliseconds

1234567891011>>