Home
last modified time | relevance | path

Searched refs:RandDouble (Results 1 – 10 of 10) sorted by relevance

/external/ceres-solver/internal/ceres/
Dcorrector_test.cc172 jacobian[i] = RandDouble(); in TEST()
174 residuals[i] = RandDouble(); in TEST()
179 rho[1] = RandDouble(); in TEST()
180 rho[2] = 2.0 * RandDouble() - 1.0; in TEST()
240 jacobian[i] = RandDouble(); in TEST()
248 rho[1] = RandDouble(); in TEST()
249 rho[2] = 2 * RandDouble() - 1.0; in TEST()
Drandom.h49 inline double RandDouble() { in RandDouble() function
59 x1 = 2.0 * RandDouble() - 1.0; in RandNormal()
60 x2 = 2.0 * RandDouble() - 1.0; in RandNormal()
Drotation_test.cc50 double RandDouble() { in RandDouble() function
320 axis_angle[i] = RandDouble() * 2 - 1; in TEST()
326 double theta = kPi * 2 * RandDouble() - kPi; in TEST()
352 quaternion[i] = RandDouble() * 2 - 1; in TEST()
429 in_axis_angle[i] = RandDouble() * 2 - 1; in TEST()
436 double theta = kPi - kMaxSmallAngle * RandDouble(); in TEST()
528 axis_angle[i] = RandDouble() * 2 - 1; in TEST()
534 double theta = kPi * 2 * RandDouble() - kPi; in TEST()
561 axis_angle[i] = RandDouble() * 2 - 1; in TEST()
567 double theta = 1e-16 * (kPi * 2 * RandDouble() - kPi); in TEST()
[all …]
Dnormal_prior_test.cc44 (*v)[r] = 2 * RandDouble() - 1; in RandomVector()
50 (*m)(r, c) = 2 * RandDouble() - 1; in RandomMatrix()
68 x[i] = 2 * RandDouble() - 1; in TEST()
105 x[i] = 2 * RandDouble() - 1; in TEST()
Dgradient_checker_test.cc62 a_[j][u] = 2.0 * RandDouble() - 1.0; in GoodTestTerm()
115 a_[j][u] = 2.0 * RandDouble() - 1.0; in BadTestTerm()
172 parameters[j][u] = 2.0 * RandDouble() - 1.0; in TEST()
Dpartitioned_matrix_view_test.cc90 x1(i) = x2(i) = RandDouble(); in TEST_F()
109 x1(i) = RandDouble(); in TEST_F()
127 x(i) = RandDouble(); in TEST_F()
Dgradient_checking_cost_function_test.cc78 a_[j][u] = 2.0 * RandDouble() - 1.0; in TestTerm()
144 parameters[j][u] = 2.0 * RandDouble() - 1.0; in TEST()
201 parameters[j][u] = 2.0 * RandDouble() - 1.0; in TEST()
Dcompressed_row_sparse_matrix_test.cc446 if (RandDouble() <= options.block_density) { in CreateRandomCompressedRowSparseMatrix()
518 options.block_density = std::max(0.1, RandDouble()); in TEST()
Dautodiff_test.cc170 PX[i] = RandDouble(); in TEST()
291 qcX[i] = RandDouble(); in TEST()
/external/ceres-solver/examples/
Drandom.h42 inline double RandDouble() { in RandDouble() function
52 x1 = 2.0 * RandDouble() - 1.0; in RandNormal()
53 x2 = 2.0 * RandDouble() - 1.0; in RandNormal()