Home
last modified time | relevance | path

Searched refs:maxAbsDiff (Results 1 – 16 of 16) sorted by relevance

/dports/science/ergo/ergo-3.8/source/test/
H A Dvmat_test.cc251 ergo_real maxAbsDiff = 0; in test_V_by_explicit_comparison() local
269 if(absDiff > maxAbsDiff) { in test_V_by_explicit_comparison()
270 maxAbsDiff = absDiff; in test_V_by_explicit_comparison()
274 …printf("maxAbsDiff = %22.15f (sum_for_maxAbsDiff = %22.15f)\n", (double)maxAbsDiff, (double)sum_f… in test_V_by_explicit_comparison()
279 if(maxAbsDiff > tolerance1) in test_V_by_explicit_comparison()
387 ergo_real maxAbsDiff = 0; in test_V_by_explicit_comparison_tight() local
404 if(absDiff > maxAbsDiff) in test_V_by_explicit_comparison_tight()
405 maxAbsDiff = absDiff; in test_V_by_explicit_comparison_tight()
411 if(maxAbsDiff > tolerance) in test_V_by_explicit_comparison_tight()
413 printf("error in V matrix test: maxAbsDiff = %22.15f\n", (double)maxAbsDiff); in test_V_by_explicit_comparison_tight()
/dports/graphics/opencv/opencv-4.5.3/modules/core/test/
H A Dtest_misc.cpp34 static double maxAbsDiff(const T &t, const U &u) in maxAbsDiff() function
55 EXPECT_LE(maxAbsDiff(expected, actual), 0.0); in TEST()
70 EXPECT_LE(maxAbsDiff(expected, actual), FLT_EPSILON); in TEST()
85 EXPECT_LE(maxAbsDiff(expected, actual), FLT_EPSILON); in TEST()
101 EXPECT_LE(maxAbsDiff(expected, actual), 0.0); in TEST()
117 EXPECT_LE(maxAbsDiff(expected, actual), FLT_EPSILON); in TEST()
133 EXPECT_LE(maxAbsDiff(expected, actual), FLT_EPSILON); in TEST()
/dports/lang/gcc12-devel/gcc-12-20211205/libphobos/src/std/math/
H A Doperations.d1096 return fabs(value) <= maxAbsDiff; in approxEqual()
1104 || maxAbsDiff != 0 && fabs(value - reference) <= maxAbsDiff; in approxEqual()
1248 if (!isClose(lhs.front, rhs, maxRelDiff, maxAbsDiff))
1259 if (!isClose(lhs, rhs.front, maxRelDiff, maxAbsDiff))
1269 return isClose(lhs.re, rhs.re, maxRelDiff, maxAbsDiff)
1270 && isClose(lhs.im, rhs.im, maxRelDiff, maxAbsDiff);
1275 return isClose(lhs.re, rhs, maxRelDiff, maxAbsDiff)
1276 && isClose(lhs.im, 0.0, maxRelDiff, maxAbsDiff);
1282 return isClose(lhs, rhs.re, maxRelDiff, maxAbsDiff)
1283 && isClose(0.0, rhs.im, maxRelDiff, maxAbsDiff);
[all …]
/dports/lang/gcc12-devel/gcc-12-20211205/gcc/testsuite/gdc.test/runnable/
H A Dbuiltin.d13 bool isClose(real lhs, real rhs, real maxRelDiff = 1e-09L, real maxAbsDiff = 0.0)
24 || diff <= maxAbsDiff;
/dports/science/ergo/ergo-3.8/source/scf/
H A DSCF_restricted.cc1980 ergo_real maxAbsDiff = -1; in compute_gradient_fixeddens() local
1988 if (absdiff > maxAbsDiff) in compute_gradient_fixeddens()
1990 maxAbsDiff = absdiff; in compute_gradient_fixeddens()
1996 …F, "maxAbsDiff %22.11f = %9.4g, for atomIdx %d and coordIdx %d", maxAbsDiff, maxAbsDiff, atomIdx_s… in compute_gradient_fixeddens()
/dports/math/SCIP/scip-7.0.3/check/solchecker/src/
H A Dmodel.cpp617 Rational maxAbsDiff(1, 10); in checkWrtExact() local
618 if( diff > maxAbsDiff ) objective = false; in checkWrtExact()
/dports/graphics/yafaray/libYafaRay-3.5.1/include/core_api/
H A Dcolor.h49 friend float maxAbsDiff(const color_t &a, const color_t &b);
371 inline float maxAbsDiff(const color_t &a,const color_t &b) in maxAbsDiff() function
/dports/lang/gcc11/gcc-11.2.0/libphobos/src/std/
H A Dmath.d7771 bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
7783 if (!approxEqual(lhs.front, rhs.front, maxRelDiff, maxAbsDiff))
7790 return approxEqual(lhs, real(rhs), maxRelDiff, maxAbsDiff);
7797 if (!approxEqual(lhs.front, rhs, maxRelDiff, maxAbsDiff))
7810 if (!approxEqual(lhs, rhs.front, maxRelDiff, maxAbsDiff))
7818 return approxEqual(real(lhs), real(rhs), maxRelDiff, maxAbsDiff);
7826 return fabs(lhs) <= maxAbsDiff;
7834 || maxAbsDiff != 0 && fabs(lhs - rhs) <= maxAbsDiff;
/dports/lang/gcc10/gcc-10.3.0/libphobos/src/std/
H A Dmath.d7752 bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
7764 if (!approxEqual(lhs.front, rhs.front, maxRelDiff, maxAbsDiff))
7771 return approxEqual(lhs, real(rhs), maxRelDiff, maxAbsDiff);
7778 if (!approxEqual(lhs.front, rhs, maxRelDiff, maxAbsDiff))
7791 if (!approxEqual(lhs, rhs.front, maxRelDiff, maxAbsDiff))
7799 return approxEqual(real(lhs), real(rhs), maxRelDiff, maxAbsDiff);
7807 return fabs(lhs) <= maxAbsDiff;
7815 || maxAbsDiff != 0 && fabs(lhs - rhs) <= maxAbsDiff;
/dports/lang/gcc11-devel/gcc-11-20211009/libphobos/src/std/
H A Dmath.d7771 bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
7783 if (!approxEqual(lhs.front, rhs.front, maxRelDiff, maxAbsDiff))
7790 return approxEqual(lhs, real(rhs), maxRelDiff, maxAbsDiff);
7797 if (!approxEqual(lhs.front, rhs, maxRelDiff, maxAbsDiff))
7810 if (!approxEqual(lhs, rhs.front, maxRelDiff, maxAbsDiff))
7818 return approxEqual(real(lhs), real(rhs), maxRelDiff, maxAbsDiff);
7826 return fabs(lhs) <= maxAbsDiff;
7834 || maxAbsDiff != 0 && fabs(lhs - rhs) <= maxAbsDiff;
/dports/devel/avr-gcc/gcc-10.2.0/libphobos/src/std/
H A Dmath.d7752 bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
7764 if (!approxEqual(lhs.front, rhs.front, maxRelDiff, maxAbsDiff))
7771 return approxEqual(lhs, real(rhs), maxRelDiff, maxAbsDiff);
7778 if (!approxEqual(lhs.front, rhs, maxRelDiff, maxAbsDiff))
7791 if (!approxEqual(lhs, rhs.front, maxRelDiff, maxAbsDiff))
7799 return approxEqual(real(lhs), real(rhs), maxRelDiff, maxAbsDiff);
7807 return fabs(lhs) <= maxAbsDiff;
7815 || maxAbsDiff != 0 && fabs(lhs - rhs) <= maxAbsDiff;
/dports/lang/gcc9-devel/gcc-9-20211007/libphobos/src/std/
H A Dmath.d7738 bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
7750 if (!approxEqual(lhs.front, rhs.front, maxRelDiff, maxAbsDiff))
7757 return approxEqual(lhs, real(rhs), maxRelDiff, maxAbsDiff);
7764 if (!approxEqual(lhs.front, rhs, maxRelDiff, maxAbsDiff))
7777 if (!approxEqual(lhs, rhs.front, maxRelDiff, maxAbsDiff))
7785 return approxEqual(real(lhs), real(rhs), maxRelDiff, maxAbsDiff);
7793 return fabs(lhs) <= maxAbsDiff;
7801 || maxAbsDiff != 0 && fabs(lhs - rhs) <= maxAbsDiff;
/dports/lang/gcc10-devel/gcc-10-20211008/libphobos/src/std/
H A Dmath.d7752 bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
7764 if (!approxEqual(lhs.front, rhs.front, maxRelDiff, maxAbsDiff))
7771 return approxEqual(lhs, real(rhs), maxRelDiff, maxAbsDiff);
7778 if (!approxEqual(lhs.front, rhs, maxRelDiff, maxAbsDiff))
7791 if (!approxEqual(lhs, rhs.front, maxRelDiff, maxAbsDiff))
7799 return approxEqual(real(lhs), real(rhs), maxRelDiff, maxAbsDiff);
7807 return fabs(lhs) <= maxAbsDiff;
7815 || maxAbsDiff != 0 && fabs(lhs - rhs) <= maxAbsDiff;
/dports/lang/gcc9/gcc-9.4.0/libphobos/src/std/
H A Dmath.d7738 bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
7750 if (!approxEqual(lhs.front, rhs.front, maxRelDiff, maxAbsDiff))
7757 return approxEqual(lhs, real(rhs), maxRelDiff, maxAbsDiff);
7764 if (!approxEqual(lhs.front, rhs, maxRelDiff, maxAbsDiff))
7777 if (!approxEqual(lhs, rhs.front, maxRelDiff, maxAbsDiff))
7785 return approxEqual(real(lhs), real(rhs), maxRelDiff, maxAbsDiff);
7793 return fabs(lhs) <= maxAbsDiff;
7801 || maxAbsDiff != 0 && fabs(lhs - rhs) <= maxAbsDiff;
/dports/misc/cxx_atomics_pic/gcc-11.2.0/libphobos/src/std/
H A Dmath.d7771 bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
7783 if (!approxEqual(lhs.front, rhs.front, maxRelDiff, maxAbsDiff))
7790 return approxEqual(lhs, real(rhs), maxRelDiff, maxAbsDiff);
7797 if (!approxEqual(lhs.front, rhs, maxRelDiff, maxAbsDiff))
7810 if (!approxEqual(lhs, rhs.front, maxRelDiff, maxAbsDiff))
7818 return approxEqual(real(lhs), real(rhs), maxRelDiff, maxAbsDiff);
7826 return fabs(lhs) <= maxAbsDiff;
7834 || maxAbsDiff != 0 && fabs(lhs - rhs) <= maxAbsDiff;
/dports/lang/gcc9-aux/gcc-9.1.0/libphobos/src/std/
H A Dmath.d7738 bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
7750 if (!approxEqual(lhs.front, rhs.front, maxRelDiff, maxAbsDiff))
7757 return approxEqual(lhs, real(rhs), maxRelDiff, maxAbsDiff);
7764 if (!approxEqual(lhs.front, rhs, maxRelDiff, maxAbsDiff))
7777 if (!approxEqual(lhs, rhs.front, maxRelDiff, maxAbsDiff))
7785 return approxEqual(real(lhs), real(rhs), maxRelDiff, maxAbsDiff);
7793 return fabs(lhs) <= maxAbsDiff;
7801 || maxAbsDiff != 0 && fabs(lhs - rhs) <= maxAbsDiff;