Home
last modified time | relevance | path

Searched refs:valarray (Results 1 – 25 of 206) sorted by relevance

123456789

/ndk/sources/cxx-stl/stlport/stlport/stl/
D_valarray.h47 template <class _Tp> class valarray; variable
48 typedef valarray<bool> _Valarray_bool;
49 typedef valarray<size_t> _Valarray_size_t;
91 class valarray : private _Valarray_base<_Tp>
99 valarray() : _Valarray_base<_Tp>() {} in valarray() function
100 explicit valarray(size_t __n) : _Valarray_base<_Tp>(__n) in valarray() function
102 valarray(const value_type& __x, size_t __n) : _Valarray_base<_Tp>(__n) in valarray() function
104 valarray(const value_type* __p, size_t __n) : _Valarray_base<_Tp>(__n) in valarray() function
106 valarray(const valarray<_Tp>& __x) : _Valarray_base<_Tp>(__x._M_size) { in valarray() function
112 valarray(const slice_array<_Tp>&);
[all …]
D_valarray.c36 _Valarray_bool valarray<_Tp>:: operator!() const {
45 valarray<_Tp>& valarray<_Tp>::operator=(const slice_array<_Tp>& __x) {
56 valarray<_Tp> valarray<_Tp>::operator[](slice __slice) const {
57 valarray<_Tp> __tmp(__slice.size(), _NoInit());
87 valarray<_Tp>& valarray<_Tp>::operator=(const gslice_array<_Tp>& __x) {
98 valarray<_Tp> valarray<_Tp>::operator[](const gslice& __slice) const {
99 valarray<_Tp> __tmp(__slice._M_size(), _NoInit());
108 valarray<_Tp> valarray<_Tp>::operator[](const _Valarray_bool& __mask) const {
115 valarray<_Tp> __tmp(_p_size, _NoInit());
126 valarray<_Tp>& valarray<_Tp>::operator=(const indirect_array<_Tp>& __x) {
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.members/
Dshift.pass.cpp26 std::valarray<T> v1(a1, N1); in main()
27 std::valarray<T> v2 = v1.shift(0); in main()
37 std::valarray<T> v1(a1, N1); in main()
38 std::valarray<T> v2 = v1.shift(1); in main()
48 std::valarray<T> v1(a1, N1); in main()
49 std::valarray<T> v2 = v1.shift(9); in main()
59 std::valarray<T> v1(a1, N1); in main()
60 std::valarray<T> v2 = v1.shift(90); in main()
70 std::valarray<T> v1(a1, N1); in main()
71 std::valarray<T> v2 = v1.shift(-1); in main()
[all …]
Dcshift.pass.cpp26 std::valarray<T> v1(a1, N1); in main()
27 std::valarray<T> v2 = v1.cshift(0); in main()
37 std::valarray<T> v1(a1, N1); in main()
38 std::valarray<T> v2 = v1.cshift(3); in main()
48 std::valarray<T> v1(a1, N1); in main()
49 std::valarray<T> v2 = v1.cshift(10); in main()
59 std::valarray<T> v1(a1, N1); in main()
60 std::valarray<T> v2 = v1.cshift(17); in main()
70 std::valarray<T> v1(a1, N1); in main()
71 std::valarray<T> v2 = v1.cshift(-3); in main()
[all …]
Dswap.pass.cpp27 std::valarray<T> v1(a1, N1); in main()
28 std::valarray<T> v2(a2, N2); in main()
29 std::valarray<T> v1_save = v1; in main()
30 std::valarray<T> v2_save = v2; in main()
44 std::valarray<T> v1(a1, N1); in main()
45 std::valarray<T> v2; in main()
46 std::valarray<T> v1_save = v1; in main()
47 std::valarray<T> v2_save = v2; in main()
61 std::valarray<T> v1; in main()
62 std::valarray<T> v2(a2, N2); in main()
[all …]
Dapply_value.pass.cpp29 std::valarray<T> v1(a1, N1); in main()
30 std::valarray<T> v2 = v1.apply(f); in main()
37 std::valarray<T> v1; in main()
38 std::valarray<T> v2 = v1.apply(f); in main()
45 std::valarray<T> v1(a1, N1); in main()
46 std::valarray<T> v2 = (v1+v1).apply(f); in main()
Dapply_cref.pass.cpp29 std::valarray<T> v1(a1, N1); in main()
30 std::valarray<T> v2 = v1.apply(f); in main()
37 std::valarray<T> v1; in main()
38 std::valarray<T> v2 = v1.apply(f); in main()
45 std::valarray<T> v1(a1, N1); in main()
46 std::valarray<T> v2 = (v1+v1).apply(f); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/valarray.nonmembers/valarray.special/
Dswap.pass.cpp29 std::valarray<T> v1(a1, N1); in main()
30 std::valarray<T> v2(a2, N2); in main()
31 std::valarray<T> v1_save = v1; in main()
32 std::valarray<T> v2_save = v2; in main()
46 std::valarray<T> v1(a1, N1); in main()
47 std::valarray<T> v2; in main()
48 std::valarray<T> v1_save = v1; in main()
49 std::valarray<T> v2_save = v2; in main()
63 std::valarray<T> v1; in main()
64 std::valarray<T> v2(a2, N2); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dvalarray2 //===-------------------------- valarray ----------------------------------===//
15 valarray synopsis
21 class valarray
27 valarray();
28 explicit valarray(size_t n);
29 valarray(const value_type& x, size_t n);
30 valarray(const value_type* px, size_t n);
31 valarray(const valarray& v);
32 valarray(valarray&& v) noexcept;
33 valarray(const slice_array<value_type>& sa);
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.cons/
Ddefault.pass.cpp22 std::valarray<int> v; in main()
26 std::valarray<float> v; in main()
30 std::valarray<double> v; in main()
34 std::valarray<std::valarray<double> > v; in main()
Dvalue_size.pass.cpp22 std::valarray<int> v(5, 100); in main()
28 std::valarray<double> v(2.5, 100); in main()
34 std::valarray<std::valarray<double> > v(std::valarray<double>(10), 100); in main()
Dcopy.pass.cpp25 std::valarray<T> v(a, N); in main()
26 std::valarray<T> v2 = v; in main()
35 std::valarray<T> v(a, N); in main()
36 std::valarray<T> v2 = v; in main()
42 typedef std::valarray<double> T; in main()
45 std::valarray<T> v(a, N); in main()
46 std::valarray<T> v2 = v; in main()
Dmove.pass.cpp27 std::valarray<T> v(a, N); in main()
28 std::valarray<T> v2 = std::move(v); in main()
38 std::valarray<T> v(a, N); in main()
39 std::valarray<T> v2 = std::move(v); in main()
46 typedef std::valarray<double> T; in main()
49 std::valarray<T> v(a, N); in main()
50 std::valarray<T> v2 = std::move(v); in main()
Dsize.pass.cpp22 std::valarray<int> v(100); in main()
28 std::valarray<double> v(100); in main()
34 std::valarray<std::valarray<double> > v(100); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.unary/
Dnegate.pass.cpp25 std::valarray<T> v(a, N); in main()
26 std::valarray<T> v2 = -v; in main()
35 std::valarray<T> v(a, N); in main()
36 std::valarray<T> v2 = -v; in main()
42 typedef std::valarray<double> T; in main()
45 std::valarray<T> v(a, N); in main()
46 std::valarray<T> v2 = -v; in main()
59 std::valarray<T> v(a, N); in main()
60 std::valarray<T> v2 = -(v + v); in main()
Dplus.pass.cpp25 std::valarray<T> v(a, N); in main()
26 std::valarray<T> v2 = +v; in main()
35 std::valarray<T> v(a, N); in main()
36 std::valarray<T> v2 = +v; in main()
42 typedef std::valarray<double> T; in main()
45 std::valarray<T> v(a, N); in main()
46 std::valarray<T> v2 = +v; in main()
59 std::valarray<T> v(a, N); in main()
60 std::valarray<T> v2 = +(v + v); in main()
Dbit_not.pass.cpp25 std::valarray<T> v(a, N); in main()
26 std::valarray<T> v2 = ~v; in main()
32 typedef std::valarray<int> T; in main()
35 std::valarray<T> v(a, N); in main()
36 std::valarray<T> v2 = ~v; in main()
49 std::valarray<T> v(a, N); in main()
50 std::valarray<T> v2 = ~(v + v); in main()
Dnot.pass.cpp25 std::valarray<T> v(a, N); in main()
26 std::valarray<bool> v2 = !v; in main()
35 std::valarray<T> v(a, N); in main()
36 std::valarray<bool> v2 = !(v + v); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
Dvalarray.cpp16 template valarray<size_t>::valarray(size_t);
17 template valarray<size_t>::~valarray();
18 template void valarray<size_t>::resize(size_t, size_t);
23 valarray<size_t> __indices(__size_.size()); in __init()
/ndk/tests/device/test-stlport/unit/
Dvalarray_test.cpp36 valarray<double> darray; in transcendentals()
37 valarray<double> tmp; in transcendentals()
62 valarray<float> farray; in transcendentals()
63 valarray<float> tmp; in transcendentals()
89 valarray<long double> ldarray; in transcendentals()
90 valarray<long double> tmp; in transcendentals()
115 valarray<double> v0(2, 10); in transcendentals()
116 valarray<double> v1(v0[slice(0, 1, 5)]); in transcendentals()
118 valarray<double> v2(v0[gslice()]); in transcendentals()
120 valarray<double> v4(v0[valarray<size_t>()]); in transcendentals()
/ndk/tests/device/test-gnustl-full/unit/
Dvalarray_test.cpp36 valarray<double> darray; in transcendentals()
37 valarray<double> tmp; in transcendentals()
62 valarray<float> farray; in transcendentals()
63 valarray<float> tmp; in transcendentals()
89 valarray<long double> ldarray; in transcendentals()
90 valarray<long double> tmp; in transcendentals()
115 valarray<double> v0(2, 10); in transcendentals()
116 valarray<double> v1(v0[slice(0, 1, 5)]); in transcendentals()
118 valarray<double> v2(v0[gslice()]); in transcendentals()
120 valarray<double> v4(v0[valarray<size_t>()]); in transcendentals()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.assign/
Dcopy_assign.pass.cpp25 std::valarray<T> v(a, N); in main()
26 std::valarray<T> v2; in main()
36 std::valarray<T> v(a, N); in main()
37 std::valarray<T> v2; in main()
44 typedef std::valarray<double> T; in main()
47 std::valarray<T> v(a, N); in main()
48 std::valarray<T> v2(a, N-2); in main()
Dmove_assign.pass.cpp26 std::valarray<T> v(a, N); in main()
27 std::valarray<T> v2; in main()
38 std::valarray<T> v(a, N); in main()
39 std::valarray<T> v2; in main()
47 typedef std::valarray<double> T; in main()
50 std::valarray<T> v(a, N); in main()
51 std::valarray<T> v2(a, N-2); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/valarray.nonmembers/valarray.comparison/
Dand_value_valarray.pass.cpp28 std::valarray<T> v2(a2, N); in main()
29 std::valarray<bool> v3 = 5 && v2; in main()
39 std::valarray<T> v2(a2, N); in main()
40 std::valarray<bool> v3 = 0 && v2; in main()
Dor_value_valarray.pass.cpp28 std::valarray<T> v2(a2, N); in main()
29 std::valarray<bool> v3 = 5 || v2; in main()
39 std::valarray<T> v2(a2, N); in main()
40 std::valarray<bool> v3 = 0 || v2; in main()

123456789