Home
last modified time | relevance | path

Searched refs:poly (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/third_party/boost/libs/geometry/test/algorithms/relate/
Drelate_areal_areal.cpp22 typedef bg::model::polygon<P> poly; in test_polygon_polygon() typedef
26 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_polygon_polygon()
29 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_polygon_polygon()
32 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_polygon_polygon()
37 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_polygon_polygon()
40 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_polygon_polygon()
43 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_polygon_polygon()
48 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_polygon_polygon()
52 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0),(3 3,7 3,7 7,3 7,3 3))", in test_polygon_polygon()
56 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0),(3 3,7 3,7 7,3 7,3 3))", in test_polygon_polygon()
[all …]
Drelate_linear_areal.cpp25 typedef bg::model::polygon<P> poly; in test_linestring_polygon() typedef
29 …test_geometry<ls, poly>("LINESTRING(11 0,11 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "FF1FF0212… in test_linestring_polygon()
33 …test_geometry<ls, poly>("LINESTRING(0 0,10 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "1FFF0F2… in test_linestring_polygon()
34 …test_geometry<ls, poly>("LINESTRING(5 0,5 5,10 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "1FFF0F2… in test_linestring_polygon()
35 …test_geometry<ls, poly>("LINESTRING(5 1,5 5,9 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "1FF0FF2… in test_linestring_polygon()
38 …test_geometry<ls, poly>("LINESTRING(11 1,11 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "FF1FF0212"… in test_linestring_polygon()
40 …test_geometry<ls, poly>("LINESTRING(11 1,10 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "FF1F00212"… in test_linestring_polygon()
42 …test_geometry<ls, poly>("LINESTRING(11 1,10 5,10 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "F11F… in test_linestring_polygon()
43 …test_geometry<ls, poly>("LINESTRING(11 1,10 10,0 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "F11F… in test_linestring_polygon()
44 …test_geometry<ls, poly>("LINESTRING(11 1,10 0,0 0)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "F11F00… in test_linestring_polygon()
[all …]
Drelate_areal_areal_sph.cpp22 typedef bg::model::polygon<P> poly; in test_polygon_polygon() typedef
27 test_geometry<ring, poly>(case_1[0], case_1[1], in test_polygon_polygon()
30 test_geometry<poly, poly>(case_1[0], case_1[1], in test_polygon_polygon()
32 test_geometry<poly, poly>(case_2[0], case_2[1], in test_polygon_polygon()
34 test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1], in test_polygon_polygon()
36 test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1], in test_polygon_polygon()
38 test_geometry<poly, poly>(case_4[0], case_4[1], in test_polygon_polygon()
40 test_geometry<poly, poly>(case_5[0], case_5[1], in test_polygon_polygon()
42 test_geometry<poly, poly>(case_6_sph[0], case_6_sph[1], in test_polygon_polygon()
45 test_geometry<poly, poly>(case_7[0], case_7[1], in test_polygon_polygon()
[all …]
Drelate_linear_areal_sph.cpp20 typedef bg::model::polygon<P> poly; in test_linestring_polygon() typedef
24 …test_geometry<ls, poly>("LINESTRING(11 0,11 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "FF1FF0212… in test_linestring_polygon()
28 …test_geometry<ls, poly>("LINESTRING(0 0,10 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "1FFF0F2… in test_linestring_polygon()
29 …test_geometry<ls, poly>("LINESTRING(5 0,5 5,10 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "1FFF0F2… in test_linestring_polygon()
30 …test_geometry<ls, poly>("LINESTRING(5 1,5 5,9 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "1FF0FF2… in test_linestring_polygon()
33 …test_geometry<ls, poly>("LINESTRING(11 1,11 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "FF1FF0212"… in test_linestring_polygon()
35 …test_geometry<ls, poly>("LINESTRING(11 1,10 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "FF1F00212"… in test_linestring_polygon()
37 …test_geometry<ls, poly>("LINESTRING(11 1,10 5,10 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "F11F… in test_linestring_polygon()
38 …test_geometry<ls, poly>("LINESTRING(11 1,10 10,0 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "F11F… in test_linestring_polygon()
39 …test_geometry<ls, poly>("LINESTRING(11 1,10 0,0 0)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", "F11F00… in test_linestring_polygon()
[all …]
/third_party/skia/tests/
DPolyUtilsTest.cpp12 SkTDArray<SkPoint> poly; in DEF_TEST() local
21 *poly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
22 *poly.push() = SkPoint::Make(100, 55); in DEF_TEST()
23 *poly.push() = SkPoint::Make(102.5f, 54.330127f); in DEF_TEST()
24 REPORTER_ASSERT(reporter, SkGetPolygonWinding(poly.begin(), poly.count()) < 0); in DEF_TEST()
25 REPORTER_ASSERT(reporter, SkIsConvexPolygon(poly.begin(), poly.count())); in DEF_TEST()
26 REPORTER_ASSERT(reporter, SkIsSimplePolygon(poly.begin(), poly.count())); in DEF_TEST()
27 REPORTER_ASSERT(reporter, SkTriangulateSimplePolygon(poly.begin(), indexMap, poly.count(), in DEF_TEST()
31 poly[2].set(102.5f, 55.330127f); in DEF_TEST()
32 REPORTER_ASSERT(reporter, SkGetPolygonWinding(poly.begin(), poly.count()) > 0); in DEF_TEST()
[all …]
/third_party/flutter/skia/tests/
DPolyUtilsTest.cpp12 SkTDArray<SkPoint> poly; in DEF_TEST() local
21 *poly.push() = SkPoint::Make(-100, 55); in DEF_TEST()
22 *poly.push() = SkPoint::Make(100, 55); in DEF_TEST()
23 *poly.push() = SkPoint::Make(102.5f, 54.330127f); in DEF_TEST()
24 REPORTER_ASSERT(reporter, SkGetPolygonWinding(poly.begin(), poly.count()) < 0); in DEF_TEST()
25 REPORTER_ASSERT(reporter, SkIsConvexPolygon(poly.begin(), poly.count())); in DEF_TEST()
26 REPORTER_ASSERT(reporter, SkIsSimplePolygon(poly.begin(), poly.count())); in DEF_TEST()
27 REPORTER_ASSERT(reporter, SkTriangulateSimplePolygon(poly.begin(), indexMap, poly.count(), in DEF_TEST()
31 poly[2].set(102.5f, 55.330127f); in DEF_TEST()
32 REPORTER_ASSERT(reporter, SkGetPolygonWinding(poly.begin(), poly.count()) > 0); in DEF_TEST()
[all …]
/third_party/boost/libs/geometry/test/algorithms/covered_by/
Dcovered_by_sph.cpp21 typedef bg::model::polygon<P> poly; in test_polygon_polygon() typedef
26 test_geometry<ring, poly>(case_1[0], case_1[1], in test_polygon_polygon()
29 test_geometry<poly, poly>(case_1[0], case_1[1], in test_polygon_polygon()
31 test_geometry<poly, poly>(case_2[0], case_2[1], in test_polygon_polygon()
33 test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1], in test_polygon_polygon()
35 test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1], in test_polygon_polygon()
37 test_geometry<poly, poly>(case_4[0], case_4[1], in test_polygon_polygon()
39 test_geometry<poly, poly>(case_5[0], case_5[1], in test_polygon_polygon()
41 test_geometry<poly, poly>(case_6_sph[0], case_6_sph[1], in test_polygon_polygon()
43 test_geometry<poly, poly>(case_6_sph[1], case_6_sph[0], in test_polygon_polygon()
[all …]
/third_party/boost/libs/geometry/test/algorithms/overlay/
Dget_turns_linear_areal.cpp31 typedef bg::model::polygon<pt> poly; in test_all() typedef
33 …test_geometry<ls, poly>("LINESTRING(15 5,24 5,20 2,19 0,13 -4,1 0,10 0,13 3,15 7,16 10,10 10,8 10,… in test_all()
38 test_geometry<ls, poly>("LINESTRING(5 0,5 5,10 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
40 test_geometry<ls, poly>("LINESTRING(0 0,5 5,10 0)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
42 … test_geometry<ls, poly>("LINESTRING(0 0,5 0,5 5,10 5,10 0)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
44 …test_geometry<ls, poly>("LINESTRING(10 0,5 0,5 5,10 5,10 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))… in test_all()
47 test_geometry<ls, poly>("LINESTRING(0 0,10 0,10 10)", in test_all()
51 test_geometry<ls, poly>("LINESTRING(11 1,10 0,0 0)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
53 test_geometry<ls, poly>("LINESTRING(0 0,10 0,11 1)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
55 test_geometry<ls, poly>("LINESTRING(10 0,0 0,-1 1)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
[all …]
Dget_turns_linear_areal_sph.cpp21 typedef bg::model::polygon<pt> poly; in test_all() typedef
23 …test_geometry<ls, poly>("LINESTRING(15 5,24 5,20 2,19 0,13 -4,1 0,10 0,13 3.0027386970408236,15 7,… in test_all()
28 test_geometry<ls, poly>("LINESTRING(5 0,5 5,10 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
30 test_geometry<ls, poly>("LINESTRING(0 0,5 5,10 0)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
32 … test_geometry<ls, poly>("LINESTRING(0 0,5 0,5 5,10 5,10 0)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
34 …test_geometry<ls, poly>("LINESTRING(10 0,5 0,5 5,10 5,10 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))… in test_all()
37 test_geometry<ls, poly>("LINESTRING(0 0,10 0,10 10.151081711048134)", in test_all()
41 test_geometry<ls, poly>("LINESTRING(11 1,10 0,0 0)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
43 test_geometry<ls, poly>("LINESTRING(0 0,10 0,11 1)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
45 test_geometry<ls, poly>("LINESTRING(10 0,0 0,-1 1)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", in test_all()
[all …]
Dget_turns_areal_areal_sph.cpp24 typedef bg::model::polygon<pt> poly; in test_all() typedef
27 test_geometry<poly, poly>(case_1[0], case_1[1], in test_all()
29 test_geometry<poly, poly>(case_2[0], case_2[1], in test_all()
31 test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1], in test_all()
33 test_geometry<poly, poly>(case_4[0], case_4[1], in test_all()
35 test_geometry<poly, poly>(case_5[0], case_5[1], in test_all()
37 test_geometry<poly, poly>(case_6_sph[0], case_6_sph[1], in test_all()
40 test_geometry<poly, poly>(case_7[0], case_7[1], in test_all()
42 test_geometry<poly, poly>(case_8_sph[0], case_8_sph[1], in test_all()
44 test_geometry<poly, poly>(case_9_sph[0], case_9_sph[1], in test_all()
[all …]
/third_party/boost/libs/geometry/test/algorithms/disjoint/
Ddisjoint_sph.cpp23 typedef bg::model::polygon<P> poly; in test_polygon_polygon() typedef
28 test_geometry<ring, poly>(case_1[0], case_1[1], in test_polygon_polygon()
31 test_geometry<poly, poly>(case_1[0], case_1[1], in test_polygon_polygon()
33 test_geometry<poly, poly>(case_2[0], case_2[1], in test_polygon_polygon()
35 test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1], in test_polygon_polygon()
37 test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1], in test_polygon_polygon()
39 test_geometry<poly, poly>(case_4[0], case_4[1], in test_polygon_polygon()
41 test_geometry<poly, poly>(case_5[0], case_5[1], in test_polygon_polygon()
43 test_geometry<poly, poly>(case_6_sph[0], case_6_sph[1], in test_polygon_polygon()
46 test_geometry<poly, poly>(case_7[0], case_7[1], in test_polygon_polygon()
[all …]
/third_party/boost/libs/geometry/test/algorithms/within/
Dwithin_sph.cpp21 typedef bg::model::polygon<P> poly; in test_polygon_polygon() typedef
26 test_geometry<ring, poly>(case_1[0], case_1[1], in test_polygon_polygon()
29 test_geometry<poly, poly>(case_1[0], case_1[1], in test_polygon_polygon()
31 test_geometry<poly, poly>(case_2[0], case_2[1], in test_polygon_polygon()
33 test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1], in test_polygon_polygon()
35 test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1], in test_polygon_polygon()
37 test_geometry<poly, poly>(case_4[0], case_4[1], in test_polygon_polygon()
39 test_geometry<poly, poly>(case_5[0], case_5[1], in test_polygon_polygon()
41 test_geometry<poly, poly>(case_6_sph[0], case_6_sph[1], in test_polygon_polygon()
43 test_geometry<poly, poly>(case_6_sph[1], case_6_sph[0], in test_polygon_polygon()
[all …]
/third_party/boost/libs/geometry/test/algorithms/intersects/
Dintersects_sph.cpp21 typedef bg::model::polygon<P> poly; in test_polygon_polygon() typedef
26 test_geometry<ring, poly>(case_1[0], case_1[1], in test_polygon_polygon()
29 test_geometry<poly, poly>(case_1[0], case_1[1], in test_polygon_polygon()
31 test_geometry<poly, poly>(case_2[0], case_2[1], in test_polygon_polygon()
33 test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1], in test_polygon_polygon()
35 test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1], in test_polygon_polygon()
37 test_geometry<poly, poly>(case_4[0], case_4[1], in test_polygon_polygon()
39 test_geometry<poly, poly>(case_5[0], case_5[1], in test_polygon_polygon()
41 test_geometry<poly, poly>(case_6_sph[0], case_6_sph[1], in test_polygon_polygon()
44 test_geometry<poly, poly>(case_7[0], case_7[1], in test_polygon_polygon()
[all …]
/third_party/boost/libs/geometry/test/algorithms/touches/
Dtouches_sph.cpp21 typedef bg::model::polygon<P> poly; in test_polygon_polygon() typedef
26 test_geometry<ring, poly>(case_1[0], case_1[1], in test_polygon_polygon()
29 test_geometry<poly, poly>(case_1[0], case_1[1], in test_polygon_polygon()
31 test_geometry<poly, poly>(case_2[0], case_2[1], in test_polygon_polygon()
33 test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1], in test_polygon_polygon()
35 test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1], in test_polygon_polygon()
37 test_geometry<poly, poly>(case_4[0], case_4[1], in test_polygon_polygon()
39 test_geometry<poly, poly>(case_5[0], case_5[1], in test_polygon_polygon()
41 test_geometry<poly, poly>(case_6_sph[0], case_6_sph[1], in test_polygon_polygon()
44 test_geometry<poly, poly>(case_7[0], case_7[1], in test_polygon_polygon()
[all …]
/third_party/boost/libs/geometry/test/algorithms/equals/
Dequals_sph.cpp21 typedef bg::model::polygon<P> poly; in test_polygon_polygon() typedef
24 test_geometry<poly, ring>(case_1[0], case_1[0], in test_polygon_polygon()
28 test_geometry<ring, poly>(case_1[0], case_1[1], in test_polygon_polygon()
31 test_geometry<poly, poly>(case_1[0], case_1[1], in test_polygon_polygon()
33 test_geometry<poly, poly>(case_2[0], case_2[1], in test_polygon_polygon()
35 test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1], in test_polygon_polygon()
37 test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1], in test_polygon_polygon()
39 test_geometry<poly, poly>(case_4[0], case_4[1], in test_polygon_polygon()
41 test_geometry<poly, poly>(case_5[0], case_5[1], in test_polygon_polygon()
43 test_geometry<poly, poly>(case_6_sph[0], case_6_sph[1], in test_polygon_polygon()
[all …]
/third_party/boost/libs/geometry/test/algorithms/overlaps/
Doverlaps_sph.cpp21 typedef bg::model::polygon<P> poly; in test_polygon_polygon() typedef
26 test_geometry<ring, poly>(case_1[0], case_1[1], in test_polygon_polygon()
29 test_geometry<poly, poly>(case_1[0], case_1[1], in test_polygon_polygon()
31 test_geometry<poly, poly>(case_2[0], case_2[1], in test_polygon_polygon()
33 test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1], in test_polygon_polygon()
35 test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1], in test_polygon_polygon()
37 test_geometry<poly, poly>(case_4[0], case_4[1], in test_polygon_polygon()
39 test_geometry<poly, poly>(case_5[0], case_5[1], in test_polygon_polygon()
41 test_geometry<poly, poly>(case_6_sph[0], case_6_sph[1], in test_polygon_polygon()
44 test_geometry<poly, poly>(case_7[0], case_7[1], in test_polygon_polygon()
[all …]
Doverlaps_areal.cpp19 typedef bg::model::polygon<P> poly; in test_aa() typedef
20 typedef bg::model::multi_polygon<poly> mpoly; in test_aa()
22 …test_geometry<poly, poly>("POLYGON((0 0,0 5,5 5,5 0,0 0))", "POLYGON((3 3,3 9,9 9,9 3,3 3))", true… in test_aa()
23 …test_geometry<poly, poly>("POLYGON((0 0,0 5,5 5,5 0,0 0))", "POLYGON((5 5,5 9,9 9,9 5,5 5))", fals… in test_aa()
24 …test_geometry<poly, poly>("POLYGON((0 0,0 5,5 5,5 0,0 0))", "POLYGON((3 3,3 5,5 5,5 3,3 3))", fals… in test_aa()
26 test_geometry<poly, mpoly>("POLYGON((0 0,0 5,5 5,5 0,0 0))", in test_aa()
34 test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,4 2,4 4,2 4,2 2))", in test_aa()
37 …test_geometry<poly, poly>("POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,4 2,4 4,2 4,2 2),(6 6,8 6,8 8,6 … in test_aa()
41 …test_geometry<mpoly, poly>("MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((0 0,0 -10,-10 -10,-10 0,0 0… in test_aa()
44 …test_geometry<mpoly, poly>("MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((0 0,0 -10,-10 -10,-10 0,0 0… in test_aa()
[all …]
/third_party/skia/bench/
DPolyUtilsBench.cpp22 virtual void makePoly(SkTDArray<SkPoint>* poly) = 0;
50 SkTDArray<SkPoint> poly; in onDraw() local
51 this->makePoly(&poly); in onDraw()
55 (void)SkIsConvexPolygon(poly.begin(), poly.count()); in onDraw()
60 (void)SkIsSimplePolygon(poly.begin(), poly.count()); in onDraw()
64 if (SkIsConvexPolygon(poly.begin(), poly.count())) { in onDraw()
67 (void)SkInsetConvexPolygon(poly.begin(), poly.count(), 10, &result); in onDraw()
68 (void)SkInsetConvexPolygon(poly.begin(), poly.count(), 40, &result); in onDraw()
73 if (SkIsSimplePolygon(poly.begin(), poly.count())) { in onDraw()
76 bounds.setBounds(poly.begin(), poly.count()); in onDraw()
[all …]
/third_party/flutter/skia/bench/
DPolyUtilsBench.cpp21 virtual void makePoly(SkTDArray<SkPoint>* poly) = 0;
49 SkTDArray<SkPoint> poly; in onDraw() local
50 this->makePoly(&poly); in onDraw()
54 (void)SkIsConvexPolygon(poly.begin(), poly.count()); in onDraw()
59 (void)SkIsSimplePolygon(poly.begin(), poly.count()); in onDraw()
63 if (SkIsConvexPolygon(poly.begin(), poly.count())) { in onDraw()
66 (void)SkInsetConvexPolygon(poly.begin(), poly.count(), 10, &result); in onDraw()
67 (void)SkInsetConvexPolygon(poly.begin(), poly.count(), 40, &result); in onDraw()
72 if (SkIsSimplePolygon(poly.begin(), poly.count())) { in onDraw()
75 bounds.setBounds(poly.begin(), poly.count()); in onDraw()
[all …]
/third_party/boost/libs/geometry/example/
D03_polygon_example.cpp41 polygon_2d poly; in main() local
48 assign_points(poly, coor); in main()
53 correct(poly); in main()
57 std::cout << dsv(poly) << std::endl; in main()
61 envelope(poly, b); in main()
65 std::cout << "area: " << area(poly) << std::endl; in main()
69 centroid(poly, cent); in main()
75 std::cout << "number of points in outer ring: " << poly.outer().size() << std::endl; in main()
80 poly.inners().resize(1); in main()
81 model::ring<point_2d>& inner = poly.inners().back(); in main()
[all …]
/third_party/optimized-routines/math/tools/
Dexp2.sollya7 deg = 3; // poly degree
13 //deg = 5; // poly degree
22 // return p that minimizes |f(x) - poly(x) - x^d*p(x)|/|f(x)|
23 approx = proc(poly,d) {
24 return remez(1 - poly(x)/f(x), deg-d, [a;b], x^d/f(x), 1e-10);
26 // return p that minimizes |f(x) - poly(x) - x^d*p(x)|
27 approx_abs = proc(poly,d) {
28 return remez(f(x) - poly(x), deg-d, [a;b], x^d, 1e-10);
32 poly = 1;
34 p = roundcoefficients(approx(poly,i), [|D ...|]);
[all …]
Dexp.sollya6 deg = 5; // poly degree
14 // return p that minimizes |exp(x) - poly(x) - x^d*p(x)|
15 approx = proc(poly,d) {
16 return remez(exp(x)-poly(x), deg-d, [a;b], x^d, 1e-10);
20 poly = 1 + x;
22 p = roundcoefficients(approx(poly,i), [|D ...|]);
23 poly = poly + x^i*coeff(p,0);
27 print("rel error:", accurateinfnorm(1-poly(x)/exp(x), [a;b], 30));
28 print("abs error:", accurateinfnorm(exp(x)-poly(x), [a;b], 30));
31 print("rel2 error:", accurateinfnorm(1-poly(x)/exp(x), [2*a;2*b], 30));
[all …]
/third_party/optimized-routines/math/
Dv_exp2f_1u.c30 specialcase (v_f32_t poly, v_f32_t n, v_u32_t e, v_f32_t absn) in specialcase() argument
38 v_f32_t r0 = poly * s1 * s2; in specialcase()
46 v_f32_t n, r, scale, poly, absn; in V_NAME() local
65 poly = v_fma_f32 (C0, r, C1); in V_NAME()
66 poly = v_fma_f32 (poly, r, C2); in V_NAME()
67 poly = v_fma_f32 (poly, r, C3); in V_NAME()
68 poly = v_fma_f32 (poly, r, C4); in V_NAME()
69 poly = v_fma_f32 (poly, r, C5); in V_NAME()
70 poly = v_fma_f32 (poly, r, v_f32 (1.0f)); in V_NAME()
72 return specialcase (poly, n, e, absn); in V_NAME()
[all …]
Dv_expf_1u.c33 specialcase (v_f32_t poly, v_f32_t n, v_u32_t e, v_f32_t absn) in specialcase() argument
41 v_f32_t r0 = poly * s1 * s2; in specialcase()
49 v_f32_t n, r, scale, poly, absn, z; in V_NAME() local
70 poly = v_fma_f32 (C0, r, C1); in V_NAME()
71 poly = v_fma_f32 (poly, r, C2); in V_NAME()
72 poly = v_fma_f32 (poly, r, C3); in V_NAME()
73 poly = v_fma_f32 (poly, r, C4); in V_NAME()
74 poly = v_fma_f32 (poly, r, v_f32 (1.0f)); in V_NAME()
75 poly = v_fma_f32 (poly, r, v_f32 (1.0f)); in V_NAME()
77 return specialcase (poly, n, e, absn); in V_NAME()
[all …]
/third_party/boost/libs/geometry/test/algorithms/crosses/
Dcrosses_sph.cpp22 typedef bg::model::polygon<P> poly; in test_linestring_polygon() typedef
25 test_geometry<ls, poly>("LINESTRING(11 0,11 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", false); in test_linestring_polygon()
27 test_geometry<ls, poly>("LINESTRING(0 0,10 10)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", false); in test_linestring_polygon()
28 … test_geometry<ls, poly>("LINESTRING(5 0,5 5,10 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", false); in test_linestring_polygon()
29 test_geometry<ls, poly>("LINESTRING(5 1,5 5,9 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", false); in test_linestring_polygon()
30 test_geometry<ls, poly>("LINESTRING(11 1,11 5)", "POLYGON((0 0,0 10,10 10,10 0,0 0))", false); in test_linestring_polygon()
32 test_geometry<ls, poly>("LINESTRING(9 1,10 5,9 9)", in test_linestring_polygon()
36 test_geometry<ls, poly>("LINESTRING(9 1,10 5,9 9,1 9,1 1,9 1)", in test_linestring_polygon()
40 test_geometry<ls, poly>("LINESTRING(0 0,10 0,10 10,0 10,0 0)", in test_linestring_polygon()
49 typedef bg::model::polygon<P> poly; in test_linestring_multi_polygon() typedef
[all …]

12345678910>>...12