Home
last modified time | relevance | path

Searched refs:IsClose (Results 1 – 25 of 74) sorted by relevance

123

/dports/misc/openmvg/openMVG-2.0/src/third_party/ceres-solver/internal/ceres/
H A Dis_close_test.cc41 TEST(IsClose, BothParametersPositive) { in TEST() argument
46 EXPECT_TRUE(IsClose(9.9, 10.0, 0.011, &relative_error, &absolute_error)); in TEST()
51 EXPECT_TRUE(IsClose(10.0, 9.9, 0.011, &relative_error, &absolute_error)); in TEST()
67 TEST(IsClose, BothParametersNegative) { in TEST() argument
93 TEST(IsClose, ParametersHaveMixedSigns) { in TEST() argument
103 EXPECT_TRUE(IsClose(-0.1, 0.1, 2.01, &relative_error, &absolute_error)); in TEST()
118 TEST(IsClose, OneParameterZero) { in TEST() argument
144 EXPECT_FALSE(IsClose(0, 10.0, 9.9, &relative_error, &absolute_error)); in TEST()
154 EXPECT_FALSE(IsClose(0, -10.0, 9.9, &relative_error, &absolute_error)); in TEST()
164 TEST(IsClose, BothParametersZero) { in TEST() argument
[all …]
H A Dgradient_checker.cc47 using internal::IsClose;
196 if (!IsClose( in Probe()
237 !IsClose(term_jacobian, in Probe()
/dports/math/ceres-solver/ceres-solver-2.0.0/internal/ceres/
H A Dis_close_test.cc42 TEST(IsClose, BothParametersPositive) { in TEST() argument
47 EXPECT_TRUE(IsClose(9.9, 10.0, 0.011, &relative_error, &absolute_error)); in TEST()
52 EXPECT_TRUE(IsClose(10.0, 9.9, 0.011, &relative_error, &absolute_error)); in TEST()
68 TEST(IsClose, BothParametersNegative) { in TEST() argument
94 TEST(IsClose, ParametersHaveMixedSigns) { in TEST() argument
104 EXPECT_TRUE(IsClose(-0.1, 0.1, 2.01, &relative_error, &absolute_error)); in TEST()
119 TEST(IsClose, OneParameterZero) { in TEST() argument
145 EXPECT_FALSE(IsClose(0, 10.0, 9.9, &relative_error, &absolute_error)); in TEST()
155 EXPECT_FALSE(IsClose(0, -10.0, 9.9, &relative_error, &absolute_error)); in TEST()
165 TEST(IsClose, BothParametersZero) { in TEST() argument
[all …]
H A Dgradient_checker.cc48 using internal::IsClose;
205 if (!IsClose(results->residuals[i], in Probe()
245 bool bad_jacobian_entry = !IsClose(term_jacobian, in Probe()
/dports/misc/usd/USD-21.11/pxr/base/gf/testenv/
H A DtestGfLineSeg.py67 self.assertTrue(Gf.IsClose(t, 0, 0.0001), err("FindClosestPoint"))
81 self.assertTrue(Gf.IsClose(t1, 1./3, 0.00001))
82 self.assertTrue(Gf.IsClose(t2, 0, 0.00001))
90 self.assertTrue(Gf.IsClose(t1, 0, 0.00001))
91 self.assertTrue(Gf.IsClose(t2, 0, 0.00001))
96 self.assertTrue(Gf.IsClose(t1, 0, 0.00001))
97 self.assertTrue(Gf.IsClose(t2, 0, 0.00001))
111 self.assertTrue(Gf.IsClose(t1, 0.57735, 0.00001))
112 self.assertTrue(Gf.IsClose(t2, 0, 0.00001))
120 self.assertTrue(Gf.IsClose(t1, 0, 0.00001))
[all …]
H A DtestGfRotation.py48 Gf.IsClose(r.angle, 90, 0.00001))
72 self.assertTrue(Gf.IsClose(q.real, qq.real, 0.00001) and
73 Gf.IsClose(q.imaginary, qq.imaginary, 0.00001))
133 Gf.IsClose(r1.angle, 90, 0.00001))
136 Gf.IsClose(r1.angle, 900, 0.00001))
139 Gf.IsClose(r1.angle, 90, 0.00001))
145 Gf.IsClose(tmp.angle, 90, 0.00001))
148 Gf.IsClose(tmp.angle, 300, 0.00001))
151 Gf.IsClose(tmp.angle, 300, 0.00001))
154 Gf.IsClose(tmp.angle, 3, 0.00001))
[all …]
H A DtestGfVec.py306 self.assertTrue(Gf.IsClose(nv, nvcheck, eps))
308 self.assertTrue(Gf.IsClose(v2, nvcheck, eps))
354 self.assertTrue(Gf.IsClose( v1, v1, 0.1 ))
355 self.assertFalse(Gf.IsClose( v1, v2, 0.1 ))
471 self.assertTrue(Gf.IsClose(v3, v1, eps))
474 self.assertTrue(Gf.IsClose(v3, v3, eps))
485 self.assertTrue(Gf.IsClose(v3, v1, eps))
488 self.assertTrue(Gf.IsClose(v3, v3, eps))
492 self.assertTrue(Gf.IsClose(v3, v2, eps))
499 self.assertTrue(Gf.IsClose(v3, v1, eps))
[all …]
H A DtestGfQuaternion.py89 self.assertTrue(Gf.IsClose(quatType(1,vec3Type(2,3,4)).GetLength(),
93 self.assertTrue(Gf.IsClose(q.real, 0.182574, closeVal) and
103 self.assertTrue(Gf.IsClose(q.real, 0.182574, closeVal) and
115 self.assertTrue(Gf.IsClose(q.GetInverse().real, re, closeVal) and
165 self.assertTrue(Gf.IsClose(q.real, 0.5, closeVal) and
166 Gf.IsClose(q.imaginary, vec3Type(0.5, 0.5, 0.5),
173 self.assertTrue(Gf.IsClose(q.real, 0, closeVal) and
174 Gf.IsClose(q.imaginary, vec3Type(1,1,1), closeVal))
179 self.assertTrue(Gf.IsClose(q.real, 0, closeVal) and
193 self.assertTrue(Gf.IsClose(Gf.Dot(q1, q2), 40, closeVal))
[all …]
H A DtestGfMatrix.py360 Gf.IsClose(r.angle, r2.angle, 0.0001))
435 Gf.IsClose(Gf.Dot(v0,v2), 0, 0.0001) and \
436 Gf.IsClose(Gf.Dot(v1,v2), 0, 0.0001))
544 Gf.IsClose(r.angle, r2.angle, 0.0001))
546 Gf.IsClose(r3.angle, r2.angle, 0.0001))
557 Gf.IsClose(r.angle, r2.angle, 0.0001))
559 Gf.IsClose(r3.angle, r2.angle, 0.0001))
566 Gf.IsClose(r4.angle, r2.angle, 0.0001))
568 Gf.IsClose(r4.angle, r5.angle, 0.0001))
576 Gf.IsClose(r2.angle, r2.angle, 0.0001))
[all …]
H A DtestGfFrustum.py164 self.assertTrue(Gf.IsClose(Gf.Frustum().Transform(m).ComputeUpVector(), \
185 self.assertTrue(Gf.IsClose(r1, r2, 0.0001))
188 self.assertTrue(Gf.IsClose(r1, r2, 0.0001))
254 self.assertTrue(Gf.IsClose( r.startPoint, Gf.Vec3d(2, 2, -1), 0.00001 ))
255 self.assertTrue(Gf.IsClose( r.direction, Gf.Vec3d(0, 0, -1), 0.00001 ))
259 self.assertTrue(Gf.IsClose( r.direction, Gf.Vec3d(0, 0, -1), 0.00001 ))
269 self.assertTrue(Gf.IsClose( r.direction, Gf.Vec3d(0, 0, -1), 0.00001 ))
382 self.assertTrue(Gf.IsClose(corners[i], results[i], 0.0001))
386 self.assertTrue(Gf.IsClose(corners[i], results[i], 0.0001))
390 self.assertTrue(Gf.IsClose(corners[i], results[i+4], 0.0001))
[all …]
H A DtestGfTransform.py51 self.assertTrue(Gf.IsClose(tm[0],m[0],tol) and \
52 Gf.IsClose(tm[1],m[1],tol) and \
53 Gf.IsClose(tm[2],m[2],tol) and \
54 Gf.IsClose(tm[3],m[3],tol), \
71 self.assertTrue(Gf.IsClose(t.rotation.axis, Gf.Vec3d(1,1,1).GetNormalized(), 0.0001) and \
72 Gf.IsClose(t.rotation.angle, 30, 0.0001), err("SetMatrix"))
127 … self.assertTrue(Gf.IsClose(t1.rotation.axis, Gf.Vec3d(0.495572, 0.858356, 0.132788), 0.0001) and
128 Gf.IsClose(t1.rotation.angle, 105.447, 0.0001), err("*="))
136 … self.assertTrue(Gf.IsClose(t3.rotation.axis, Gf.Vec3d(0.495572, 0.858356, 0.132788), 0.0001) and \
137 Gf.IsClose(t3.rotation.angle, 105.447, 0.0001), err("*="))
[all …]
H A DtestGfRay.py74 self.assertTrue(Gf.IsClose(dist, 0.24, 0.00001))
85 Gf.IsClose(lineDistance, -4.04145188433, 0.00001))
105 Gf.IsClose(lineDistance, 0, 0.00001))
183 Gf.IsClose(exitDistance, 1, 0.00001))
204 Gf.IsClose(exitDistance, 0.5, 0.00001))
216 Gf.IsClose(exitDistance, 0.0, 0.00001))
243 Gf.IsClose(exitDistance, 1.5, 0.00001))
248 Gf.IsClose(exitDistance, 0.0, 0.00001))
257 Gf.IsClose(exitDistance, 0.5, 0.00001))
264 Gf.IsClose(exitDistance, 15.0, 0.00001))
[all …]
H A DtestGfLine.py58 … self.assertTrue(Gf.IsClose(point, Gf.Vec3d(2./3, 2./3, 2./3), 0.00001), err("FindClosestPoint"))
59 self.assertTrue(Gf.IsClose(t, 1.1547, 0.0001), err("FindClosestPoint"))
70 … self.assertTrue(Gf.IsClose(p1, Gf.Vec3d(0.25, 0.25, 0.25), 0.00001), err("FindClosestPoints"))
71 … self.assertTrue(Gf.IsClose(p2, Gf.Vec3d(0.75, 0.25, -0.25), 0.00001), err("FindClosestPoints"))
72 self.assertTrue(Gf.IsClose(t1, 0.433012701892, 0.00001))
73 self.assertTrue(Gf.IsClose(t2, -0.433012701892, 0.00001))
H A DtestGfHomogeneous.py48 self.assertTrue(Gf.IsClose(result, v3 ^ v4, 0.00001))
56 self.assertTrue(Gf.IsClose(result, v3 ^ v4, 0.00001))
H A DtestGfPlane.py73 self.assertTrue(Gf.IsClose(v, 0, 1e-12))
85 self.assertTrue(Gf.IsClose(p.GetDistance(Gf.Vec3d(2,2,2)), 2.4641016151377553, 0.00001),
89 self.assertTrue(Gf.IsClose(p.GetDistance(Gf.Vec3d(0,0,0)), 0, 0.00001), \
98 self.assertTrue(Gf.IsClose(p.normal, Gf.Vec3d(0.57735, 0.211325, 0.788675), 0.0001))
/dports/misc/usd/USD-21.11/pxr/base/tf/testenv/
H A Dstopwatch.cpp39 IsClose(double a, double b, double epsilon=1e-3) in IsClose() function
77 if (!IsClose(watch1.GetSeconds(), 0.5, EPSILON)) { in Test_TfStopwatch()
92 if (!IsClose(watch1.GetSeconds(), 1.0, EPSILON)) { in Test_TfStopwatch()
113 if (!IsClose(watchCopy.GetSeconds(), watch1.GetSeconds())) { in Test_TfStopwatch()
126 if (!IsClose(watchCopy.GetSeconds()/watch1.GetSeconds(), 2.0)) { in Test_TfStopwatch()
/dports/math/vtk8/VTK-8.2.0/Common/DataModel/Testing/Cxx/
H A DTestQuadraticPolygon.cxx29 bool IsClose(double d1, double d2);
30 bool IsClose(double *point1, double *point2);
77 bool vtkQuadraticPolygonTest::IsClose(double v1, double v2) in IsClose() function in vtkQuadraticPolygonTest
82 bool vtkQuadraticPolygonTest::IsClose(double *point1, double *point2) in IsClose() function in vtkQuadraticPolygonTest
281 if (!this->IsClose( this->GetPoints()->GetPoint(i)[j] , in TestInitializePolygon()
350 if (!this->IsClose(weights[i],w1)) in TestInterpolateFunctions()
360 if (!this->IsClose(weights[i],w2)) in TestInterpolateFunctions()
387 if (!this->IsClose(weights[i],w1)) in TestInterpolateFunctionsUsingMVC()
397 if (!this->IsClose(weights[i],w2)) in TestInterpolateFunctionsUsingMVC()
/dports/math/vtk9/VTK-9.1.0/Common/DataModel/Testing/Cxx/
H A DTestQuadraticPolygon.cxx29 bool IsClose(double v1, double v2);
30 bool IsClose(double* point1, double* point2);
81 bool vtkQuadraticPolygonTest::IsClose(double v1, double v2) in IsClose() function in vtkQuadraticPolygonTest
86 bool vtkQuadraticPolygonTest::IsClose(double* point1, double* point2) in IsClose() function in vtkQuadraticPolygonTest
271 if (!this->IsClose(this->GetPoints()->GetPoint(i)[j], in TestInitializePolygon()
337 if (!this->IsClose(weights[i], w1)) in TestInterpolateFunctions()
346 if (!this->IsClose(weights[i], w2)) in TestInterpolateFunctions()
372 if (!this->IsClose(weights[i], w1)) in TestInterpolateFunctionsUsingMVC()
381 if (!this->IsClose(weights[i], w2)) in TestInterpolateFunctionsUsingMVC()
/dports/math/vtk6/VTK-6.2.0/Common/DataModel/Testing/Cxx/
H A DTestQuadraticPolygon.cxx29 bool IsClose(double d1, double d2);
30 bool IsClose(double *point1, double *point2);
77 bool vtkQuadraticPolygonTest::IsClose(double v1, double v2) in IsClose() function in vtkQuadraticPolygonTest
82 bool vtkQuadraticPolygonTest::IsClose(double *point1, double *point2) in IsClose() function in vtkQuadraticPolygonTest
281 if (!this->IsClose( this->GetPoints()->GetPoint(i)[j] , in TestInitializePolygon()
350 if (!this->IsClose(weights[i],w1)) in TestInterpolateFunctions()
360 if (!this->IsClose(weights[i],w2)) in TestInterpolateFunctions()
387 if (!this->IsClose(weights[i],w1)) in TestInterpolateFunctionsUsingMVC()
397 if (!this->IsClose(weights[i],w2)) in TestInterpolateFunctionsUsingMVC()
/dports/misc/usd/USD-21.11/pxr/usd/plugin/usdAbc/testenv/
H A DtestUsdAbcConversionSubdiv.py59 self.assertTrue(Gf.IsClose(c, e, 1e-5))
64 self.assertTrue(Gf.IsClose(c, e, 1e-5))
69 self.assertTrue(Gf.IsClose(c, e, 1e-5))
75 self.assertTrue(Gf.IsClose(c, e, 1e-5))
83 self.assertTrue(Gf.IsClose(c, e, 1e-5))
/dports/misc/usd/USD-21.11/pxr/usd/usdGeom/testenv/
H A DtestUsdGeomSchemata.py375 self.assertTrue(Gf.IsClose(camera.GetVerticalApertureAttr().Get(),
386 self.assertTrue(Gf.IsClose(camera.GetClippingRangeAttr().Get(),
400 self.assertTrue(Gf.IsClose(camera.GetFStopAttr().Get(), 2.8, 1e-5))
497 self.assertTrue(Gf.IsClose(a, b, 1e-5))
508 self.assertTrue(Gf.IsClose(a, b, 1e-5))
521 self.assertTrue(Gf.IsClose(a, b, 1e-5))
540 self.assertTrue(Gf.IsClose(a, b, 1e-5))
573 self.assertTrue(Gf.IsClose(a, b, 1e-5))
585 self.assertTrue(Gf.IsClose(a, b, 1e-5))
595 self.assertTrue(Gf.IsClose(a, b, 1e-5))
[all …]
/dports/misc/usd/USD-21.11/pxr/imaging/cameraUtil/testenv/
H A DtestCameraUtil.py33 self.assertTrue(Gf.IsClose(a.GetRow(i), b.GetRow(i), eps))
35 self.assertTrue(Gf.IsClose(a.min, b.min, eps))
36 self.assertTrue(Gf.IsClose(a.max, b.max, eps))
38 self.assertTrue(Gf.IsClose(a,b,eps))
/dports/misc/usd/USD-21.11/pxr/usd/usdSkel/testenv/
H A DtestUsdSkelSkeletonQuery.py43 return all(Gf.IsClose(x,y,threshold) for x,y in zip(list(a),list(b)))
51 self.assertTrue(all(Gf.IsClose(ca,cb,epsilon)
194 self.assertTrue(Gf.IsClose(rootXf, expectedXf, 1e-5))
/dports/graphics/blender/blender-2.91.0/extern/ceres/internal/ceres/
H A Dgradient_checker.cc48 using internal::IsClose;
197 if (!IsClose( in Probe()
238 !IsClose(term_jacobian, in Probe()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/wuffs/src/lang/render/
H A Drender.go113 if lineTokens[0].ID.IsClose() {
248 return x.IsClose() || x.IsIdent(tm) || x.IsLiteral(tm)
252 return x.IsClose() || x.IsIdent(tm) || x.IsStrLiteral(tm)

123