/external/deqp/framework/delibs/decpp/ |
deRandom.cpp | 91 const float epsilon = 0.01f; local 94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon); 101 const float epsilon = 0.01f; 104 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat(-542.2f, 1248.7f)) < epsilon);
|
/external/mesa3d/src/mesa/main/ |
drawpix.c | 326 const GLfloat epsilon = 0.0001F; local 327 GLint x = IFLOOR(ctx->Current.RasterPos[0] + epsilon - xorig); 328 GLint y = IFLOOR(ctx->Current.RasterPos[1] + epsilon - yorig);
|
/art/test/053-wait-some/src/ |
Main.java | 60 long epsilon = delay / 10; local 61 if (epsilon > 50) { 62 epsilon = 50; 65 long min = delay - epsilon; 66 long max = delay + epsilon;
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
vktSpvAsmComputeShaderTestUtil.cpp | 32 bool verifyOutputWithEpsilon (const std::vector<AllocationSp>& outputAllocs, const std::vector<BufferSp>& expectedOutputs, tcu::TestLog& log, const float epsilon) 49 // Use custom epsilon because of the float->string conversion 50 if (fabs(expectedFloats[floatNdx] - actualFloats[floatNdx]) > epsilon) 53 << " Expected: " << expectedFloats[floatNdx] << " Actual: " << actualFloats[floatNdx] << " Epsilon: " << epsilon << tcu::TestLog::EndMessage; 120 const float epsilon = 0.001f; local 121 return verifyOutputWithEpsilon(outputAllocs, expectedOutputs, log, epsilon);
|
/external/eigen/unsupported/test/ |
cxx11_tensor_simple.cpp | 159 Tensor<int, 3> epsilon(3,3,3); 160 epsilon.setZero(); 161 epsilon(0,1,2) = epsilon(2,0,1) = epsilon(1,2,0) = 1; 162 epsilon(2,1,0) = epsilon(0,2,1) = epsilon(1,0,2) = -1; 164 VERIFY_IS_EQUAL((epsilon.size()), 27); 165 VERIFY_IS_EQUAL((epsilon.dimensions()[0]), 3) 297 Tensor<int, 3> epsilon; local [all...] |
/external/tensorflow/tensorflow/core/kernels/ |
quantize_op_test.cc | 264 const int64 epsilon = 1 << 8; local 269 EXPECT_GT(epsilon, std::abs(delta))
|
quantize_op.cc | 126 const float epsilon = std::max(1.0f, std::max(fabsf(input_min_range), variable 129 max_range = std::max(input_max_range, min_range + epsilon);
|
/external/fonttools/Lib/fontTools/misc/ |
bezierTools.py | 21 epsilon = 1e-12 variable 263 if abs(a) < epsilon: 264 if abs(b) < epsilon: 294 if abs(a) < epsilon:
|
/external/lmfit/lib/ |
lmstruct.h | 43 double epsilon; /* Step used to calculate the Jacobian, should be member in struct:__anon28499
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
cudnn_batchnorm_rewriter.cc | 47 // cudnn defines CUDNN_BN_MIN_EPSILON = 1e-5 as the minimum acceptable epsilon 50 return batch_norm->epsilon() >= 1e-5; 69 HloInstruction* epsilon = computation_->AddInstruction( local 70 HloInstruction::CreateConstant(Literal::CreateR0(batch_norm->epsilon()))); 77 operands.push_back(epsilon); 104 HloInstruction* epsilon = computation_->AddInstruction( local 105 HloInstruction::CreateConstant(Literal::CreateR0(batch_norm->epsilon()))); 112 operands.push_back(epsilon); 121 // {output, mean, rsqrt(variance + epsilon)}, 134 variance_plus_epsilon, epsilon)); 167 HloInstruction* epsilon = computation_->AddInstruction( local [all...] |
gpu_layout_assignment_test.cc | 133 auto* epsilon = builder.AddInstruction( local 141 {operand, scale, offset, mean, variance, epsilon, feature_index}, 201 auto* epsilon = builder.AddInstruction( local 208 batchnorm_shape, {operand, scale, offset, epsilon, feature_index}, 277 auto* epsilon = builder.AddInstruction( local 286 {operand, scale, mean, var, grad_offset, epsilon,
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
SoftLandingInterpolator.java | 42 final float epsilon = Math.min(mI / 2f, (1f - mI) / 2f); local 43 bottom = mI - epsilon; 44 top = mI + epsilon;
|
/external/deqp/external/openglcts/modules/glesext/draw_buffers_indexed/ |
esextcDrawBuffersIndexedColorMasks.cpp | 206 tcu::RGBA epsilon = GetEpsilon(); local 230 if (!VerifyImg(textureLevel, expected, epsilon)) 252 if (!VerifyImg(textureLevel, expected, epsilon)) 274 if (!VerifyImg(textureLevel, expected, epsilon)) 409 tcu::UVec4 epsilon; local 414 epsilon[i] = de::min( 418 return tcu::RGBA(epsilon.x(), epsilon.y(), epsilon.z(), epsilon.w()) [all...] |
esextcDrawBuffersIndexedBlending.cpp | 236 tcu::RGBA epsilon = GetEpsilon(); local 245 if (!VerifyImg(textureLevel, expected[i % 4], epsilon)) 375 tcu::UVec4 epsilon; local 380 epsilon[i] = de::min( 384 return tcu::RGBA(epsilon.x(), epsilon.y(), epsilon.z(), epsilon.w()); 388 tcu::RGBA epsilon) 395 if (!tcu::compareThreshold(pixel, expectedColor, epsilon)) [all...] |
/external/deqp/external/openglcts/modules/glesext/tessellation_shader/ |
esextcTessellationShaderMaxPatchVertices.cpp | 665 const glw::GLfloat epsilon = (glw::GLfloat)1e-5f; local 670 if (de::abs(resultFloats[i] - ref_fv[i]) > epsilon)
|
esextcTessellationShaderProperties.cpp | 66 const float epsilon = (float)1e-5; local 121 if ((n_components >= 1 && de::abs(float_value[0] - (float)expected_value) > epsilon) || 122 (n_components >= 2 && de::abs(float_value[1] - (float)expected_value) > epsilon) || 123 (n_components >= 3 && de::abs(float_value[2] - (float)expected_value) > epsilon) || 124 (n_components >= 4 && de::abs(float_value[3] - (float)expected_value) > epsilon))
|
/external/deqp/external/openglcts/modules/glesext/texture_cube_map_array/ |
esextcTextureCubeMapArrayGetterCalls.cpp | 421 const float epsilon = 1e-5f; local 442 if (de::abs(float_value - static_cast<float>(m_to_id)) > epsilon) 454 if (de::abs(float_value - static_cast<float>(m_to_id)) > epsilon) 514 const glw::GLfloat epsilon = 1e-5f; local 683 if ((should_use_equal_comparison && (de::abs(float_value - (expected_property_float_value)) > epsilon)) ||
|
/external/tensorflow/tensorflow/contrib/boosted_trees/resources/ |
quantile_stream_resource.h | 34 QuantileStreamResource(const float epsilon, const int32 num_quantiles, 37 : stream_(epsilon, max_elements), 39 epsilon_(epsilon), 66 float epsilon() const { return epsilon_; } function in class:tensorflow::boosted_trees::QuantileStreamResource
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
CubicBezierInterpolator.java | 75 final float epsilon = 1e-6f; local 91 double derivative = (getX(t + epsilon) - value) / epsilon; 92 if (Math.abs(value - x) < epsilon) { 94 } else if (Math.abs(derivative) < epsilon) { 108 for (int i = 0; Math.abs(value - x) > epsilon && i < iterations; i++) {
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
PoissonDistributionImpl.java | 70 private double epsilon = DEFAULT_EPSILON; field in class:PoissonDistributionImpl 88 * @param epsilon the convergence criteria for cumulative probabilites 92 public PoissonDistributionImpl(double p, double epsilon, int maxIterations) { 94 this.epsilon = epsilon; 102 * @param epsilon the convergence criteria for cumulative probabilites 105 public PoissonDistributionImpl(double p, double epsilon) { 107 this.epsilon = epsilon; 219 return Gamma.regularizedGammaQ((double) x + 1, mean, epsilon, maxIterations) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/ |
OpenMapRealVector.java | 47 private final double epsilon; field in class:OpenMapRealVector 73 * @param epsilon The tolerance for having a value considered zero 75 public OpenMapRealVector(int dimension, double epsilon) { 78 this.epsilon = epsilon; 89 epsilon = v.epsilon; 105 * @param epsilon The tolerance for having a value considered zero 107 public OpenMapRealVector(int dimension, int expectedSize, double epsilon) { 110 this.epsilon = epsilon [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/ |
SimplexSolver.java | 39 protected final double epsilon; field in class:SimplexSolver 50 * @param epsilon the amount of error to accept in floating point comparisons 52 public SimplexSolver(final double epsilon) { 53 this.epsilon = epsilon; 65 if (MathUtils.compareTo(tableau.getEntry(0, i), minValue, epsilon) < 0) { 86 if (MathUtils.compareTo(entry, 0, epsilon) > 0) { 88 if (MathUtils.equals(ratio, minRatio, epsilon)) { 106 if (MathUtils.equals(tableau.getEntry(row, column), 1, epsilon) && 165 if (!MathUtils.equals(tableau.getEntry(0, tableau.getRhsOffset()), 0, epsilon)) { [all...] |
/external/deqp/external/openglcts/modules/gl/ |
gl4cShaderGroupVoteTests.cpp | 176 const float epsilon = 0.008f; local 177 return de::abs(testedColor.x() - desiredColor.x()) < epsilon && 178 de::abs(testedColor.y() - desiredColor.y()) < epsilon && 179 de::abs(testedColor.z() - desiredColor.z()) < epsilon;
|
/external/deqp/external/openglcts/modules/gles31/ |
es31cTextureStorageMultisampleGLCoverageTests.cpp | 100 const float epsilon = (float)1e-5; local 139 if (de::abs(float_value - float(int_value)) > epsilon) 152 const float epsilon = (float)1e-5; local 163 if (bool_value != GL_FALSE || de::abs(float_value) > epsilon || int_value != 0) 182 if (bool_value != GL_FALSE || de::abs(float_value) > epsilon || int_value != 0) 224 if (bool_value != GL_TRUE || de::abs(float_value - expected_float_value) > epsilon || 246 if (bool_value != GL_TRUE || de::abs(float_value - expected_float_value) > epsilon || 305 const float epsilon = (float)1e-5; local 474 if (de::abs(float(expected_int_value) - float_value) > epsilon) 509 const float epsilon = (float)1e-5 local [all...] |
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
vktTessellationFractionalSpacingTests.cpp | 173 const float epsilon = 0.001f; local 176 if (de::abs(seg.length - segmentsA[0].length) < epsilon) 178 else if (segmentsB.empty() || de::abs(seg.length - segmentsB[0].length) < epsilon)
|