/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/ |
D | eval.pass.cpp | 40 std::vector<D::result_type> u; in main() 43 D::result_type v = d(g); in main() 47 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() 48 D::result_type(0)) / u.size(); in main() 49 D::result_type var = 0; in main() 50 D::result_type skew = 0; in main() 51 D::result_type kurtosis = 0; in main() 54 D::result_type d = (u[i] - mean); in main() 55 D::result_type d2 = sqr(d); in main() 61 D::result_type dev = std::sqrt(var); in main() [all …]
|
D | eval_param.pass.cpp | 40 std::vector<D::result_type> u; in main() 43 D::result_type v = d(g, p); in main() 47 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() 48 D::result_type(0)) / u.size(); in main() 49 D::result_type var = 0; in main() 50 D::result_type skew = 0; in main() 51 D::result_type kurtosis = 0; in main() 54 D::result_type d = (u[i] - mean); in main() 55 D::result_type d2 = sqr(d); in main() 61 D::result_type dev = std::sqrt(var); in main() [all …]
|
/external/opencv3/modules/cudev/include/opencv2/cudev/block/ |
D | vec_distance.hpp | 64 typedef uint result_type; typedef 66 result_type mySum; 75 __device__ __forceinline__ void reduceWarp(result_type* smem, uint tid) in reduceWarp() 77 warpReduce(smem, mySum, tid, plus<result_type>()); in reduceWarp() 80 … template <int THREAD_DIM> __device__ __forceinline__ void reduceBlock(result_type* smem, uint tid) in reduceBlock() 82 blockReduce<THREAD_DIM>(smem, mySum, tid, plus<result_type>()); in reduceBlock() 85 __device__ __forceinline__ operator result_type() const in operator result_type() 93 typedef float result_type; typedef 95 result_type mySum; 104 __device__ __forceinline__ void reduceWarp(result_type* smem, uint tid) in reduceWarp() [all …]
|
/external/libcxx/include/ |
D | random | 29 typedef UIntType result_type; 32 static constexpr result_type multiplier = a; 33 static constexpr result_type increment = c; 34 static constexpr result_type modulus = m; 35 static constexpr result_type min() { return c == 0u ? 1u: 0u;} 36 static constexpr result_type max() { return m - 1u;} 37 static constexpr result_type default_seed = 1u; 40 explicit linear_congruential_engine(result_type s = default_seed); 42 void seed(result_type s = default_seed); 46 result_type operator()(); [all …]
|
/external/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/ |
D | result_type.pass.cpp | 27 typedef UIntType result_type; typedef in rand1 30 result_type x_; 37 static const result_type _Min = Min; 38 static const result_type _Max = Max; 41 static _LIBCPP_CONSTEXPR result_type min() {return Min;} in min() 42 static _LIBCPP_CONSTEXPR result_type max() {return Max;} in max() 44 explicit rand1(result_type sd = Min) : x_(sd) in rand1() 52 result_type operator()() in operator ()() 54 result_type r = x_; in operator ()() 67 std::independent_bits_engine<rand1<unsigned long, 0, 10>, 16, unsigned>::result_type, in test1() [all …]
|
D | eval.pass.cpp | 25 typedef UIntType result_type; typedef in rand1 28 result_type x_; 35 static const result_type _Min = Min; 36 static const result_type _Max = Max; 39 static _LIBCPP_CONSTEXPR result_type min() {return Min;} in min() 40 static _LIBCPP_CONSTEXPR result_type max() {return Max;} in max() 42 explicit rand1(result_type sd = Min) : x_(sd) in rand1() 48 result_type operator()() in operator ()() 50 result_type r = x_; in operator ()()
|
/external/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/ |
D | result_type.pass.cpp | 27 typedef UIntType result_type; typedef in rand1 30 result_type x_; 37 static const result_type _Min = Min; 38 static const result_type _Max = Max; 41 static _LIBCPP_CONSTEXPR result_type min() {return Min;} in min() 42 static _LIBCPP_CONSTEXPR result_type max() {return Max;} in max() 44 explicit rand1(result_type sd = Min) : x_(sd) in rand1() 52 result_type operator()() in operator ()() 54 result_type r = x_; in operator ()() 67 std::shuffle_order_engine<rand1<unsigned long, 0, 10>, 16>::result_type, in test1() [all …]
|
D | eval.pass.cpp | 25 typedef UIntType result_type; typedef in rand1 28 result_type x_; 35 static const result_type _Min = Min; 36 static const result_type _Max = Max; 39 static _LIBCPP_CONSTEXPR result_type min() {return Min;} in min() 40 static _LIBCPP_CONSTEXPR result_type max() {return Max;} in max() 42 explicit rand1(result_type sd = Min) : x_(sd) in rand1() 48 result_type operator()() in operator ()() 50 result_type r = x_; in operator ()()
|
/external/libcxx/test/std/utilities/function.objects/refwrap/ |
D | weak_result.pass.cpp | 34 typedef float result_type; typedef in functor3 52 template <class U> static char test(typename U::result_type* = 0); 59 static_assert((std::is_same<std::reference_wrapper<functor1>::result_type, in main() 61 static_assert((std::is_same<std::reference_wrapper<functor2>::result_type, in main() 63 static_assert((std::is_same<std::reference_wrapper<functor3>::result_type, in main() 65 static_assert((std::is_same<std::reference_wrapper<void()>::result_type, in main() 67 static_assert((std::is_same<std::reference_wrapper<int*(double*)>::result_type, in main() 69 static_assert((std::is_same<std::reference_wrapper<void(*)()>::result_type, in main() 71 static_assert((std::is_same<std::reference_wrapper<int*(*)(double*)>::result_type, in main() 73 static_assert((std::is_same<std::reference_wrapper<int*(C::*)(double*)>::result_type, in main() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ |
D | eval.pass.cpp | 31 std::vector<D::result_type> u(d.max()+1); in main() 34 D::result_type v = d(g); in main() 49 std::vector<D::result_type> u(d.max()+1); in main() 52 D::result_type v = d(g); in main() 67 std::vector<D::result_type> u(d.max()+1); in main() 70 D::result_type v = d(g); in main() 85 std::vector<D::result_type> u(d.max()+1); in main() 88 D::result_type v = d(g); in main() 103 std::vector<D::result_type> u(d.max()+1); in main() 106 D::result_type v = d(g); in main() [all …]
|
D | types.pass.cpp | 24 typedef D::result_type result_type; in main() typedef 25 static_assert((std::is_same<result_type, int>::value), ""); in main() 29 typedef D::result_type result_type; in main() typedef 30 static_assert((std::is_same<result_type, long>::value), ""); in main()
|
/external/libchrome/base/strings/ |
D | string_split.cc | 77 SplitResult result_type) { in SplitStringT() argument 98 if (result_type == SPLIT_WANT_ALL || !piece.empty()) in SplitStringT() 137 SplitResult result_type, in SplitStringUsingSubstrT() argument 153 if (result_type == SPLIT_WANT_ALL || !term.empty()) in SplitStringUsingSubstrT() 163 SplitResult result_type) { in SplitString() argument 166 input, separators[0], whitespace, result_type); in SplitString() 169 input, separators, whitespace, result_type); in SplitString() 175 SplitResult result_type) { in SplitString() argument 178 input, separators[0], whitespace, result_type); in SplitString() 181 input, separators, whitespace, result_type); in SplitString() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/ |
D | types.pass.cpp | 24 typedef D::result_type result_type; in main() typedef 25 static_assert((std::is_same<result_type, int>::value), ""); in main() 29 typedef D::result_type result_type; in main() typedef 30 static_assert((std::is_same<result_type, long>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.cauchy/ |
D | types.pass.cpp | 26 typedef D::result_type result_type; in main() typedef 27 static_assert((std::is_same<result_type, double>::value), ""); in main() 31 typedef D::result_type result_type; in main() typedef 32 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.extreme/ |
D | types.pass.cpp | 26 typedef D::result_type result_type; in main() typedef 27 static_assert((std::is_same<result_type, double>::value), ""); in main() 31 typedef D::result_type result_type; in main() typedef 32 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/ |
D | types.pass.cpp | 26 typedef D::result_type result_type; in main() typedef 27 static_assert((std::is_same<result_type, double>::value), ""); in main() 31 typedef D::result_type result_type; in main() typedef 32 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.poisson/ |
D | types.pass.cpp | 26 typedef D::result_type result_type; in main() typedef 27 static_assert((std::is_same<result_type, int>::value), ""); in main() 31 typedef D::result_type result_type; in main() typedef 32 static_assert((std::is_same<result_type, unsigned long long>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/ |
D | types.pass.cpp | 26 typedef D::result_type result_type; in main() typedef 27 static_assert((std::is_same<result_type, double>::value), ""); in main() 31 typedef D::result_type result_type; in main() typedef 32 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.f/ |
D | types.pass.cpp | 26 typedef D::result_type result_type; in main() typedef 27 static_assert((std::is_same<result_type, double>::value), ""); in main() 31 typedef D::result_type result_type; in main() typedef 32 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/ |
D | types.pass.cpp | 24 typedef D::result_type result_type; in main() typedef 25 static_assert((std::is_same<result_type, double>::value), ""); in main() 29 typedef D::result_type result_type; in main() typedef 30 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.gamma/ |
D | types.pass.cpp | 26 typedef D::result_type result_type; in main() typedef 27 static_assert((std::is_same<result_type, double>::value), ""); in main() 31 typedef D::result_type result_type; in main() typedef 32 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ |
D | types.pass.cpp | 24 typedef D::result_type result_type; in main() typedef 25 static_assert((std::is_same<result_type, double>::value), ""); in main() 29 typedef D::result_type result_type; in main() typedef 30 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.t/ |
D | types.pass.cpp | 26 typedef D::result_type result_type; in main() typedef 27 static_assert((std::is_same<result_type, double>::value), ""); in main() 31 typedef D::result_type result_type; in main() typedef 32 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/ |
D | types.pass.cpp | 26 typedef D::result_type result_type; in main() typedef 27 static_assert((std::is_same<result_type, double>::value), ""); in main() 31 typedef D::result_type result_type; in main() typedef 32 static_assert((std::is_same<result_type, float>::value), ""); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/ |
D | types.pass.cpp | 24 typedef D::result_type result_type; in main() typedef 25 static_assert((std::is_same<result_type, int>::value), ""); in main() 29 typedef D::result_type result_type; in main() typedef 30 static_assert((std::is_same<result_type, long>::value), ""); in main()
|