/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/test/ |
test_macros.h | 92 #define EXPECT_VEC3_NEAR(expected, actual, tol) \ 94 tol) 96 #define EXPECT_VEC3_NOT_NEAR(expected, actual, tol) \ 98 tol) 100 #define EXPECT_QUAT_NEAR(expected, actual, tol) \ 102 actual.coeffs(), tol) 104 #define EXPECT_QUAT_NOT_NEAR(expected, actual, tol) \ 106 actual.coeffs(), tol) 108 #define EXPECT_MAT4_NEAR(expected, actual, tol) \ 110 tol) [all...] |
/external/eigen/bench/spbench/ |
spbenchsolver.cpp | 62 double tol = 1e-08; local 65 tol = atof(inval.c_str()); 71 Browse_Matrices<double>(matrix_dir, statFileExists, statFile,maxiters, tol); 74 Browse_Matrices<std::complex<double> >(matrix_dir, statFileExists, statFile, maxiters, tol);
|
/external/eigen/unsupported/test/ |
matrix_power.cpp | 13 void test2dRotation(const T& tol) 29 VERIFY(C.isApprox(B, tol)); 34 void test2dHyperbolicRotation(const T& tol) 51 VERIFY(C.isApprox(B, tol)); 56 void test3dRotation(const T& tol) 65 VERIFY(AngleAxis<T>(angle, v).matrix().isApprox(AngleAxis<T>(1,v).matrix().pow(angle), tol)); local 70 void testGeneral(const MatrixType& m, const typename MatrixType::RealScalar& tol) 87 VERIFY(m4.isApprox(m5, tol)); 91 VERIFY(m4.isApprox(m5, tol)); 95 VERIFY(m4.isApprox(m5, tol)); [all...] |
matrix_exponential.cpp | 27 void test2dRotation(double tol) 40 VERIFY(C.isApprox(B, static_cast<T>(tol))); 44 VERIFY(C.isApprox(B, static_cast<T>(tol))); 49 void test2dHyperbolicRotation(double tol) 65 VERIFY(C.isApprox(B, static_cast<T>(tol))); 69 VERIFY(C.isApprox(B, static_cast<T>(tol))); 74 void testPascal(double tol) 89 VERIFY(C.isApprox(B, static_cast<T>(tol))); 93 VERIFY(C.isApprox(B, static_cast<T>(tol))); 98 void randomTest(const MatrixType& m, double tol) [all...] |
/external/tensorflow/tensorflow/python/kernel_tests/ |
svd_op_test.py | 85 def CompareSingularValues(self, x, y, tol): 86 self.assertAllClose(x, y, atol=(x[0] + y[0]) * tol) 88 def CompareSingularVectors(self, x, y, rank, tol): 103 self.assertAllClose(x, y, atol=2 * tol) 105 def CheckApproximation(self, a, u, s, v, full_matrices_, tol): 120 self.assertAllClose(a_recon.eval(), a, rtol=tol, atol=tol) 122 def CheckUnitary(self, x, tol): 126 self.assertAllClose(identity.eval(), xx.eval(), atol=tol) 131 tol = 3e-4 if is_single else 1e-1 [all...] |
aggregate_ops_test.py | 65 tol = 5e-3 if dtype == dtypes.float16 else 5e-7 66 self.assertAllClose(expected, actual, rtol=tol, atol=tol) 78 tol = 5e-3 if dtype == dtypes.float16 else 5e-7 79 self.assertAllClose(expected, actual, rtol=tol, atol=tol)
|
qr_op_test.py | 98 tol = 1e-5 100 tol = 1e-14 103 self.assertAllClose(a_recon.eval(), a, rtol=tol, atol=tol) 110 tol = 1e-5 112 tol = 1e-14 113 self.assertAllClose(identity.eval(), xx.eval(), atol=tol) 173 tol = 3e-2 175 tol = 1e-6 192 self.assertAllClose(theoretical, numerical, atol=tol, rtol=tol [all...] |
/external/tensorflow/tensorflow/contrib/estimator/python/estimator/ |
multi_head_test.py | 52 tol=1e-6): 59 tol: Tolerance for relative and absolute. 65 }, rtol=tol, atol=tol) 321 tol = 1e-3 328 self.assertAllClose(expected_loss, loss, rtol=tol, atol=tol) 330 self.assertAllClose(expected_metrics, metrics, rtol=tol, atol=tol) 333 rtol=tol, [all...] |
/external/tensorflow/tensorflow/contrib/solvers/python/ops/ |
least_squares.py | 32 def cgls(operator, rhs, tol=1e-6, max_iter=20, name="cgls"): 41 residual (residual of the normal equations) have been reduced to `tol` times 43 \\(||A^* (rhs - A x_k)|| <= tol ||A^* rhs||\\). 63 tol: A float scalar convergence tolerance. 81 return math_ops.logical_and(i < max_iter, state.gamma > tol) 100 tol = tol * tol * gamma0
|
/external/skia/tests/ |
ClipCubicTest.cpp | 45 float tol) { 47 if (SkScalarAbs(c0[i].fX - c1[i].fX) > tol || 48 SkScalarAbs(c0[i].fY - c1[i].fY) > tol 84 const float tol = 1e-4f; local 92 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol)); 100 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol)); 108 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol)); 126 shouldbe), tol)); 138 shouldbe), tol)); 150 shouldbe), tol)); [all...] |
PathCoverageTest.cpp | 59 static inline uint32_t compute_pointCount(SkScalar d, SkScalar tol) { 60 if (d < tol) { 63 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); 74 static uint32_t quadraticPointCount_EC(const SkPoint points[], SkScalar tol) { 76 return compute_pointCount(SkIntToScalar(distance), tol); 84 static uint32_t quadraticPointCount_CC(const SkPoint points[], SkScalar tol) { 86 return compute_pointCount(distance, tol);
|
SkColor4fTest.cpp | 21 static bool nearly_equal(float a, float b, float tol = kTolerance) { 22 SkASSERT(tol >= 0); 23 return fabsf(a - b) <= tol;
|
/external/skqp/tests/ |
ClipCubicTest.cpp | 45 float tol) { 47 if (SkScalarAbs(c0[i].fX - c1[i].fX) > tol || 48 SkScalarAbs(c0[i].fY - c1[i].fY) > tol 84 const float tol = 1e-4f; local 92 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol)); 100 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol)); 108 0, 0, 2, 3, 1, 10, 4, 12, shouldbe), tol)); 126 shouldbe), tol)); 138 shouldbe), tol)); 150 shouldbe), tol)); [all...] |
PathCoverageTest.cpp | 59 static inline uint32_t compute_pointCount(SkScalar d, SkScalar tol) { 60 if (d < tol) { 63 int temp = SkScalarCeilToInt(SkScalarSqrt(d / tol)); 74 static uint32_t quadraticPointCount_EC(const SkPoint points[], SkScalar tol) { 76 return compute_pointCount(SkIntToScalar(distance), tol); 84 static uint32_t quadraticPointCount_CC(const SkPoint points[], SkScalar tol) { 86 return compute_pointCount(distance, tol);
|
SkColor4fTest.cpp | 21 static bool nearly_equal(float a, float b, float tol = kTolerance) { 22 SkASSERT(tol >= 0); 23 return fabsf(a - b) <= tol;
|
/external/tensorflow/tensorflow/contrib/layers/python/layers/ |
normalization_test.py | 115 def doOutputTest(self, input_shape, data_format, tol=1e-3): 142 self.assertAllClose(expected_mean, mean, rtol=tol, atol=tol) 143 self.assertAllClose(expected_var, var, rtol=tol, atol=tol) 146 self.doOutputTest((10, 10, 10, 30), 'NHWC', tol=1e-2) 149 self.doOutputTest((10, 10, 10, 30), 'NCHW', tol=1e-2) 152 self.doOutputTest((1, 100, 100, 1), 'NHWC', tol=1e-3) 155 self.doOutputTest((1, 100, 100, 1), 'NCHW', tol=1e-3) 158 self.doOutputTest((10, 10, 10, 10, 30), 'NHWC', tol=1e-2 [all...] |
/external/eigen/unsupported/Eigen/src/Eigenvalues/ |
ArpackSelfAdjointEigenSolver.h | 93 * \param[in] tol What tolerance to find the eigenvalues to. Default is 0, which 103 int options=ComputeEigenvectors, RealScalar tol=0.0) 111 compute(A, B, nbrEigenvalues, eigs_sigma, options, tol); 127 * \param[in] tol What tolerance to find the eigenvalues to. Default is 0, which 138 int options=ComputeEigenvectors, RealScalar tol=0.0) 146 compute(A, nbrEigenvalues, eigs_sigma, options, tol); 162 * \param[in] tol What tolerance to find the eigenvalues to. Default is 0, which 175 int options=ComputeEigenvectors, RealScalar tol=0.0); 188 * \param[in] tol What tolerance to find the eigenvalues to. Default is 0, which 201 int options=ComputeEigenvectors, RealScalar tol=0.0) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
DormandPrince54Integrator.java | 146 final double tol = (vecAbsoluteTolerance == null) ? local 149 final double ratio = h * errSum / tol;
|
HighamHall54Integrator.java | 120 final double tol = (vecAbsoluteTolerance == null) ? local 123 final double ratio = h * errSum / tol;
|
DormandPrince853Integrator.java | 265 final double tol = (vecAbsoluteTolerance == null) ? local 268 final double ratio1 = errSum1 / tol; 270 final double ratio2 = errSum2 / tol;
|
/external/tensorflow/tensorflow/contrib/solvers/python/kernel_tests/ |
linear_equations_test.py | 55 tol = 1e-6 if dtype_ == np.float64 else 1e-3 80 tol=tol, 95 self.assertLessEqual(norm_r, tol * norm_r0) 100 self.assertLessEqual(norm_r_np, tol * norm_r0) 106 self.assertAllClose(cg_results[0].r, cg_results[1].r, rtol=tol) 107 self.assertAllClose(cg_results[0].x, cg_results[1].x, rtol=tol) 108 self.assertAllClose(cg_results[0].p, cg_results[1].p, rtol=tol)
|
lanczos_test.py | 48 tol = 1e-12 if dtype_ == np.float64 else 1e-5 72 self.assertAllClose(av_val, ub_val, atol=tol, rtol=tol) 73 self.assertAllClose(atu_val, vbt_val, atol=tol, rtol=tol)
|
least_squares_test.py | 48 tol = 1e-12 if dtype_ == np.float64 else 1e-6 58 cgls_graph = least_squares.cgls(operator, rhs, tol=tol, max_iter=max_iter) 66 self.assertLessEqual(norm_s, tol * norm_s0) 71 self.assertLessEqual(norm_s_np, tol * norm_s0)
|
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/ |
LevenbergMarquardt.h | 135 const Scalar tol = std::sqrt(NumTraits<Scalar>::epsilon()) 141 const Scalar tol = std::sqrt(NumTraits<Scalar>::epsilon()) 346 const Scalar tol 353 if (n <= 0 || m < n || tol < 0.) 357 m_ftol = tol; 358 m_xtol = tol; 371 const Scalar tol 378 if (n <= 0 || m < n || tol < 0.) 384 lm.setFtol(tol); 385 lm.setXtol(tol); [all...] |
/external/eigen/Eigen/src/Householder/ |
Householder.h | 78 const RealScalar tol = (std::numeric_limits<RealScalar>::min)(); local 80 if(tailSqNorm <= tol && numext::abs2(numext::imag(c0))<=tol)
|