Home
last modified time | relevance | path

Searched refs:Random (Results 1 – 25 of 1048) sorted by relevance

12345678910>>...42

/external/guava/guava-tests/test/com/google/common/hash/
DHashTestUtils.java31 import java.util.Random;
92 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BOOLEAN()
100 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTE()
108 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_SHORT()
116 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_CHAR()
124 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_INT()
132 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_LONG()
140 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_FLOAT()
148 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_DOUBLE()
156 @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { in PUT_BYTES()
[all …]
DAbstractNonStreamingHashFunctionTest.java29 import java.util.Random;
45 Random random = new Random(0); in testExhaustive()
61 assertPutString(new char[] { 'p', HashTestUtils.randomLowSurrogate(new Random()) }); in testPutStringWithLowSurrogate()
67 assertPutString(new char[] { 'p', HashTestUtils.randomHighSurrogate(new Random()) }); in testPutStringWithHighSurrogate()
72 HashTestUtils.randomLowSurrogate(new Random()), in testPutStringWithLowHighSurrogate()
73 HashTestUtils.randomHighSurrogate(new Random()) }); in testPutStringWithLowHighSurrogate()
78 HashTestUtils.randomHighSurrogate(new Random()), in testPutStringWithHighLowSurrogate()
79 HashTestUtils.randomLowSurrogate(new Random()) }); in testPutStringWithHighLowSurrogate()
/external/eigen/test/
Drvalue_types.cpp48 CALL_SUBTEST_1(rvalue_copyassign( MatrixXf::Random(50,50).eval() )); in test_rvalue_types()
49 CALL_SUBTEST_1(rvalue_copyassign( ArrayXXf::Random(50,50).eval() )); in test_rvalue_types()
51 CALL_SUBTEST_1(rvalue_copyassign( Matrix<float,1,Dynamic>::Random(50).eval() )); in test_rvalue_types()
52 CALL_SUBTEST_1(rvalue_copyassign( Array<float,1,Dynamic>::Random(50).eval() )); in test_rvalue_types()
54 CALL_SUBTEST_1(rvalue_copyassign( Matrix<float,Dynamic,1>::Random(50).eval() )); in test_rvalue_types()
55 CALL_SUBTEST_1(rvalue_copyassign( Array<float,Dynamic,1>::Random(50).eval() )); in test_rvalue_types()
57 CALL_SUBTEST_2(rvalue_copyassign( Array<float,2,1>::Random().eval() )); in test_rvalue_types()
58 CALL_SUBTEST_2(rvalue_copyassign( Array<float,3,1>::Random().eval() )); in test_rvalue_types()
59 CALL_SUBTEST_2(rvalue_copyassign( Array<float,4,1>::Random().eval() )); in test_rvalue_types()
61 CALL_SUBTEST_2(rvalue_copyassign( Array<float,2,2>::Random().eval() )); in test_rvalue_types()
[all …]
Dconservative_resize.cpp25 m = n = MatrixType::Random(50,50); in run_matrix_tests()
29 m = n = MatrixType::Random(50,50); in run_matrix_tests()
33 m = n = MatrixType::Random(50,50); in run_matrix_tests()
42 m = n = MatrixType::Random(50,50); in run_matrix_tests()
52 m = n = MatrixType::Random(50,50); in run_matrix_tests()
68 m = n = VectorType::Random(50); in run_vector_tests()
72 m = n = VectorType::Random(50); in run_vector_tests()
76 m = n = VectorType::Random(50); in run_vector_tests()
80 m = n = VectorType::Random(50); in run_vector_tests()
88 m = n = VectorType::Random(50); in run_vector_tests()
[all …]
Dgeo_orthomethods.cpp27 Vector3 v0 = Vector3::Random(), in orthomethods_3()
28 v1 = Vector3::Random(), in orthomethods_3()
29 v2 = Vector3::Random(); in orthomethods_3()
36 VERIFY_IS_MUCH_SMALLER_THAN(v1.cross(Vector3::Random()).dot(v1), Scalar(1)); in orthomethods_3()
49 Vector3 vec3 = Vector3::Random(); in orthomethods_3()
56 …VERIFY_IS_MUCH_SMALLER_THAN((mat3.adjoint() * mat3.colwise().cross(Vector3::Random())).diagonal().… in orthomethods_3()
59 …VERIFY_IS_MUCH_SMALLER_THAN((vec3.adjoint() * Matrix3::Random().colwise().cross(vec3)).cwiseAbs().… in orthomethods_3()
65 Vector4 v40 = Vector4::Random(), in orthomethods_3()
66 v41 = Vector4::Random(), in orthomethods_3()
67 v42 = Vector4::Random(); in orthomethods_3()
[all …]
Dgeo_hyperplane.cpp31 VectorType p0 = VectorType::Random(dim); in hyperplane()
32 VectorType p1 = VectorType::Random(dim); in hyperplane()
34 VectorType n0 = VectorType::Random(dim).normalized(); in hyperplane()
35 VectorType n1 = VectorType::Random(dim).normalized(); in hyperplane()
57 MatrixType rot = MatrixType::Random(dim,dim).householderQr().householderQ(); in hyperplane()
58 DiagonalMatrix<Scalar,HyperplaneType::AmbientDimAtCompileTime> scaling(VectorType::Random()); in hyperplane()
59 Translation<Scalar,HyperplaneType::AmbientDimAtCompileTime> translation(VectorType::Random()); in hyperplane()
61 …aling.diagonal().cwiseAbs().minCoeff()<RealScalar(1e-4)) scaling.diagonal() = VectorType::Random(); in hyperplane()
99 Vector center = Vector::Random(); in lines()
100 Vector u = Vector::Random(); in lines()
[all …]
Dlu.cpp94 m2 = CMatrixType::Random(cols,cols2); in lu_non_invertible()
96 m2 = CMatrixType::Random(cols,cols2); in lu_non_invertible()
102 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
104 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
107 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
112 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
114 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
117 m3 = MatrixType::Random(rows,cols2); in lu_non_invertible()
136 m1 = MatrixType::Random(size,size); in lu_invertible()
148 m3 = MatrixType::Random(size,size); in lu_invertible()
[all …]
Dgeo_alignedbox.cpp34 VectorType p0 = VectorType::Random(dim); in alignedbox()
35 VectorType p1 = VectorType::Random(dim); in alignedbox()
37 p1 = VectorType::Random(dim); } in alignedbox()
41 BoxType b1(VectorType::Random(dim),VectorType::Random(dim)); in alignedbox()
60 BoxType box1(VectorType::Random(dim)); in alignedbox()
61 box1.extend(VectorType::Random(dim)); in alignedbox()
62 BoxType box2(VectorType::Random(dim)); in alignedbox()
63 box2.extend(VectorType::Random(dim)); in alignedbox()
95 VectorType p0 = VectorType::Random(dim); in alignedboxCastTests()
96 VectorType p1 = VectorType::Random(dim); in alignedboxCastTests()
Dqr_fullpivoting.cpp52 MatrixType m2 = MatrixType::Random(cols,cols2); in qr()
54 m2 = MatrixType::Random(cols,cols2); in qr()
61 m1 = MatrixType::Random(size,size); in qr()
65 m3 = m1 * MatrixType::Random(size,cols2); in qr()
83 m1 = MatrixType::Random(size,size); in qr_invertible()
88 MatrixType a = MatrixType::Random(size,size*2); in qr_invertible()
97 m3 = MatrixType::Random(size,size); in qr_invertible()
156 CALL_SUBTEST_7((FullPivHouseholderQR<Matrix<float,10,20> >(Matrix<float,10,20>::Random()))); in test_qr_fullpivoting()
158 CALL_SUBTEST_7((FullPivHouseholderQR<Matrix<float,20,10> >(Matrix<float,20,10>::Random()))); in test_qr_fullpivoting()
Dproduct_selfadjoint.cpp24 MatrixType m1 = MatrixType::Random(rows, cols), in product_selfadjoint()
25 m2 = MatrixType::Random(rows, cols), in product_selfadjoint()
27 VectorType v1 = VectorType::Random(rows), in product_selfadjoint()
28 v2 = VectorType::Random(rows), in product_selfadjoint()
30 RowVectorType r1 = RowVectorType::Random(rows), in product_selfadjoint()
31 r2 = RowVectorType::Random(rows); in product_selfadjoint()
32 RhsMatrixType m4 = RhsMatrixType::Random(rows,10); in product_selfadjoint()
/external/deqp/framework/delibs/decpp/
DdeRandom.cpp39 bool Random::operator== (const Random& other) const in operator ==()
44 bool Random::operator!= (const Random& other) const in operator !=()
55 Random rnd(4789); in Random_selfTest()
64 Random rnd(4789); in Random_selfTest()
73 Random rnd(4789); in Random_selfTest()
82 Random rnd(4789); in Random_selfTest()
92 Random rnd(4789); in Random_selfTest()
102 Random rnd(4789); in Random_selfTest()
125 Random rnd(4789); in Random_selfTest()
141 Random rnd(4789); in Random_selfTest()
[all …]
DdeRandom.hpp38 class Random class
41 Random (deUint32 seed) { deRandom_init(&m_rnd, seed); } in Random() function in de::Random
42 ~Random (void) {} in ~Random()
70 bool operator== (const Random& other) const;
71 bool operator!= (const Random& other) const;
79 inline float Random::getFloat (float min, float max) in getFloat()
85 inline double Random::getDouble (double min, double max) in getDouble()
91 inline int Random::getInt (int min, int max) in getInt()
103 void Random::choose (InputIter first, InputIter last, OutputIter result, int numItems) in choose()
126 T Random::choose (InputIter first, InputIter last) in choose()
[all …]
/external/webrtc/webrtc/base/
Drandom.cc18 Random::Random(uint64_t seed) { in Random() function in webrtc::Random
23 uint32_t Random::Rand(uint32_t t) { in Rand()
36 uint32_t Random::Rand(uint32_t low, uint32_t high) { in Rand()
41 int32_t Random::Rand(int32_t low, int32_t high) { in Rand()
51 float Random::Rand<float>() { in Rand()
58 double Random::Rand<double>() { in Rand()
65 bool Random::Rand<bool>() { in Rand()
69 double Random::Gaussian(double mean, double standard_deviation) { in Gaussian()
81 double Random::Exponential(double lambda) { in Exponential()
Drandom_unittest.cc37 void UniformBucketTest(T bucket_count, int samples, Random* prng) { in UniformBucketTest()
67 Random prng(7297352569824ull); in TEST()
74 Random prng(7297352569824ull); in TEST()
81 Random prng(7297352569824ull); in TEST()
88 Random prng(7297352569824ull); in TEST()
95 Random prng(7297352569824ull); in TEST()
102 Random prng(7297352569824ull); in TEST()
116 Random* prng) { in BucketTestSignedInterval()
156 Random* prng) { in BucketTestUnsignedInterval()
189 Random prng(299792458ull); in TEST()
[all …]
Drandom.h22 class Random {
24 explicit Random(uint64_t seed);
65 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Random);
70 float Random::Rand<float>();
74 double Random::Rand<double>();
78 bool Random::Rand<bool>();
/external/deqp/framework/common/
DtcuRandomValueIterator.hpp33 T getRandomValue (de::Random& rnd) in getRandomValue()
48 template <> inline deUint8 getRandomValue<deUint8> (de::Random& rnd) { return (deUint8)rnd.getUint… in getRandomValue()
49 template <> inline deUint16 getRandomValue<deUint16> (de::Random& rnd) { return (deUint16)rnd.getUi… in getRandomValue()
50 template <> inline deUint32 getRandomValue<deUint32> (de::Random& rnd) { return rnd.getUint32(); … in getRandomValue()
51 template <> inline deUint64 getRandomValue<deUint64> (de::Random& rnd) { return rnd.getUint64(); … in getRandomValue()
52 template <> inline deInt8 getRandomValue<deInt8> (de::Random& rnd) { return (deInt8)rnd.getUint32(… in getRandomValue()
53 template <> inline deInt16 getRandomValue<deInt16> (de::Random& rnd) { return (deInt16)rnd.getUint… in getRandomValue()
54 template <> inline deInt32 getRandomValue<deInt32> (de::Random& rnd) { return (deInt32)rnd.getUint… in getRandomValue()
55 template <> inline deInt64 getRandomValue<deInt64> (de::Random& rnd) { return (deInt64)rnd.getUint… in getRandomValue()
75 de::Random m_rnd;
/external/rappor/client/javatest/com/google/android/rappor/
DEncoderTest.java21 import java.util.Random;
711 Random random = new Random(); in testEncoderEncodeBits_irrFlipProbability()
796 Random random1 = new Random(); in testEncoderEncodeBits_endToEnd()
819 Random random2 = new Random(); in testEncoderEncodeBits_endToEnd()
852 Random random0 = new Random(); in testEncoderEncodeBits_32BitValuesEncodeSuccessfully()
877 Random random31 = new Random(); in testEncoderEncodeBits_32BitValuesEncodeSuccessfully()
900 Random randomRange = new Random(); in testEncoderEncodeBits_32BitValuesEncodeSuccessfully()
932 Random random0 = new Random(); in testEncoderEncodeBits_63BitValuesEncodeSuccessfully()
957 Random random63 = new Random(); in testEncoderEncodeBits_63BitValuesEncodeSuccessfully()
980 Random randomRange = new Random(); in testEncoderEncodeBits_63BitValuesEncodeSuccessfully()
[all …]
/external/gemmlowp/test/
Dtest_math_helpers.cc32 int RandomNonnegativeFarAwayFromOverflow() { return Random() % (1 << 24); } in RandomNonnegativeFarAwayFromOverflow()
50 test_round_up_down<Modulus>(Random() % N); in test_round_up_down()
67 test_ceil_quotient(x, Integer(1 + (Random() % (N - 1)))); in test_ceil_quotient()
68 test_ceil_quotient(Integer(Random() % N), y); in test_ceil_quotient()
69 test_ceil_quotient(Integer(Random() % N), in test_ceil_quotient()
70 Integer(1 + (Random() % (N - 1)))); in test_ceil_quotient()
89 test_round_up_to_next_power_of_two(Random() % N); in test_round_up_to_next_power_of_two()
/external/skqp/bench/
DRectoriBench.cpp29 SkRandom Random; in onDraw() local
32 SkScalar blurSigma = Random.nextRangeScalar(1.5f, 25.0f); in onDraw()
33 SkScalar size = Random.nextRangeScalar(20*blurSigma, 50*blurSigma); in onDraw()
35 SkScalar x = Random.nextRangeScalar(0.0f, W - size); in onDraw()
36 SkScalar y = Random.nextRangeScalar(0.0f, H - size); in onDraw()
56 paint.setColor(0xff000000 | Random.nextU()); in onDraw()
/external/skia/bench/
DRectoriBench.cpp29 SkRandom Random; in onDraw() local
32 SkScalar blurSigma = Random.nextRangeScalar(1.5f, 25.0f); in onDraw()
33 SkScalar size = Random.nextRangeScalar(20*blurSigma, 50*blurSigma); in onDraw()
35 SkScalar x = Random.nextRangeScalar(0.0f, W - size); in onDraw()
36 SkScalar y = Random.nextRangeScalar(0.0f, H - size); in onDraw()
56 paint.setColor(0xff000000 | Random.nextU()); in onDraw()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationThreadTest.java14 import java.util.Random;
141 private static void scramble(String[] data, Random r) { in scramble()
192 private Random r;
194 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test()
256 final Random r = new Random(); in testThreads()
281 final Random r = new Random(); in testFrozen()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationThreadTest.java15 import java.util.Random;
144 private static void scramble(String[] data, Random r) { in scramble()
195 private Random r;
197 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test()
259 final Random r = new Random(); in testThreads()
284 final Random r = new Random(); in testFrozen()
/external/deqp/framework/randomshaders/
DrsgBinaryOps.hpp80 …void operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMi…
81 …void operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, int& bMin, int& bM…
82 …void operator() (de::Random&, bool, bool, bool&, bool&, bool&, bool&) const { DE_ASSERT(DE_FALSE);… in operator ()()
104 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const;
126 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const;
164 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co…
188 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co…
212 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… in operator ()()
239 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… in operator ()()
/external/eigen/bench/
Dsparse_trisolver.cpp65 DenseVector b = DenseVector::Random(cols); in main()
66 DenseVector x = DenseVector::Random(cols); in main()
190 Matrix4f m = Matrix4f::Random(); in main()
191 Vector4f b = Vector4f::Random(); in main()
192 Vector4f x = Vector4f::Random(); in main()
205 Matrix4f m = Matrix4f::Random(); in main()
206 Vector4f b = Vector4f::Random(); in main()
207 Vector4f x = Vector4f::Random(); in main()
/external/eigen/unsupported/test/
Dalignedvector3.cpp31 RefType r1(RefType::Random()), r2(RefType::Random()), r3(RefType::Random()), in alignedvector3()
32 r4(RefType::Random()), r5(RefType::Random()); in alignedvector3()
34 Mat33 m1(Mat33::Random()); in alignedvector3()

12345678910>>...42