Home
last modified time | relevance | path

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

12

/external/eigen/unsupported/Eigen/src/Polynomials/
DPolynomialUtils.h28 T poly_eval_horner( const Polynomials& poly, const T& x ) in poly_eval_horner() argument
30 T val=poly[poly.size()-1]; in poly_eval_horner()
31 for(DenseIndex i=poly.size()-2; i>=0; --i ){ in poly_eval_horner()
32 val = val*x + poly[i]; } in poly_eval_horner()
46 T poly_eval( const Polynomials& poly, const T& x ) in poly_eval() argument
51 return poly_eval_horner( poly, x ); } in poly_eval()
54 T val=poly[0]; in poly_eval()
56 for( DenseIndex i=1; i<poly.size(); ++i ){ in poly_eval()
57 val = val*inv_x + poly[i]; } in poly_eval()
59 return std::pow(x,(T)(poly.size()-1)) * val; in poly_eval()
[all …]
DPolynomialSolver.h43 inline void setPolynomial( const OtherPolynomial& poly ){ in setPolynomial() argument
44 m_roots.resize(poly.size()); } in setPolynomial()
48 inline PolynomialSolverBase( const OtherPolynomial& poly ){ in PolynomialSolverBase() argument
49 setPolynomial( poly() ); } in PolynomialSolverBase()
345 void compute( const OtherPolynomial& poly ) in compute() argument
347 eigen_assert( Scalar(0) != poly[poly.size()-1] ); in compute()
348 internal::companion<Scalar,_Deg> companion( poly ); in compute()
356 inline PolynomialSolver( const OtherPolynomial& poly ){ in PolynomialSolver() argument
357 compute( poly ); } in PolynomialSolver()
377 void compute( const OtherPolynomial& poly ) in EIGEN_POLYNOMIAL_SOLVER_BASE_INHERITED_TYPES()
[all …]
DCompanion.h75 void setPolynomial( const VectorType& poly ) in setPolynomial() argument
77 const Index deg = poly.size()-1; in setPolynomial()
78 m_monic = -1/poly[deg] * poly.head(deg); in setPolynomial()
84 companion( const VectorType& poly ){ in companion() argument
85 setPolynomial( poly ); } in companion()
/external/mesa3d/src/gallium/state_trackers/vega/
Dpolygon.c70 static void polygon_print(struct polygon *poly)
74 debug_printf("Polygon %p, size = %d\n", poly, poly->num_verts);
75 for (i = 0; i < poly->num_verts; ++i) {
76 vert = ptr_to_vertex(poly->data, i);
86 struct polygon *poly = (struct polygon*)malloc(sizeof(struct polygon)); in polygon_create() local
88 poly->data = malloc(sizeof(float) * COMPONENTS * size); in polygon_create()
89 poly->size = size; in polygon_create()
90 poly->num_verts = 0; in polygon_create()
91 poly->dirty = VG_TRUE; in polygon_create()
92 poly->user_vbuf = NULL; in polygon_create()
[all …]
Dpolygon.h39 void polygon_destroy(struct polygon *poly);
41 void polygon_resize(struct polygon *poly, int new_size);
42 int polygon_size(struct polygon *poly);
44 int polygon_vertex_count(struct polygon *poly);
45 float * polygon_data(struct polygon *poly);
Dbezier.c94 struct polygon *poly = polygon_create(64); in bezier_to_polygon() local
95 polygon_vertex_append(poly, bez->x1, bez->y1); in bezier_to_polygon()
96 bezier_add_to_polygon(bez, poly); in bezier_to_polygon()
97 return poly; in bezier_to_polygon()
101 struct polygon *poly) in bezier_add_to_polygon() argument
124 polygon_vertex_append(poly, b->x4, b->y4); in bezier_add_to_polygon()
700 struct polygon *poly = polygon_create(64); in bezier_exact_bounds() local
701 polygon_vertex_append(poly, bez->x1, bez->y1); in bezier_exact_bounds()
702 bezier_add_to_polygon(bez, poly); in bezier_exact_bounds()
703 polygon_bounding_rect(poly, bounds); in bezier_exact_bounds()
[all …]
Darc.c464 struct polygon *poly = (struct polygon*)cb->user_data; in polygon_point() local
465 polygon_vertex_append(poly, x, y); in polygon_point()
470 struct polygon *poly = (struct polygon*)cb->user_data; in polygon_bezier() local
471 bezier_add_to_polygon(bezier, poly); in polygon_bezier()
656 struct polygon *poly, in arc_add_to_polygon() argument
664 cb.user_data = poly; in arc_add_to_polygon()
Darc.h63 struct polygon *poly,
Dbezier.h58 struct polygon *poly);
/external/ceres-solver/internal/ceres/
Dpolynomial_test.cc51 Vector poly(1); in ConstantPolynomial() local
52 poly(0) = value; in ConstantPolynomial()
53 return poly; in ConstantPolynomial()
57 Vector AddRealRoot(const Vector& poly, double root) { in AddRealRoot() argument
58 Vector poly2(poly.size() + 1); in AddRealRoot()
60 poly2.head(poly.size()) += poly; in AddRealRoot()
61 poly2.tail(poly.size()) -= root * poly; in AddRealRoot()
67 Vector AddComplexRootPair(const Vector& poly, double real, double imag) { in AddComplexRootPair() argument
68 Vector poly2(poly.size() + 2); in AddComplexRootPair()
71 poly2.head(poly.size()) += poly; in AddComplexRootPair()
[all …]
/external/srtp/test/
Dlfsr.c120 weight(uint32_t poly) { in weight() argument
124 wt += octet_weight[poly & 0xff]; in weight()
125 wt += octet_weight[(poly >> 8) & 0xff]; in weight()
126 wt += octet_weight[(poly >> 16) & 0xff]; in weight()
127 wt += octet_weight[(poly >> 24)]; in weight()
137 period(uint32_t poly) { in period() argument
149 x = (x >> 1) ^ poly; in period()
176 weight_distribution2(uint32_t poly, int *A) { in weight_distribution2() argument
194 x = (x >> 1) ^ poly; in weight_distribution2()
217 weight_distribution(uint32_t poly, int *A) { in weight_distribution() argument
[all …]
/external/v8/test/mjsunit/regress/
Dregress-deep-proto.js28 function poly(x) { function
42 poly(one);
43 poly(two);
44 poly(three);
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11app/
Dd3d11u.h42 void poly(unsigned a, unsigned b, unsigned c) in poly() function
49 void poly(unsigned a, unsigned b, unsigned c, unsigned d) in poly() function
51 poly(a, b, c); in poly()
52 poly(a, c, d); in poly()
55 void poly(unsigned a, unsigned b, unsigned c, unsigned d, unsigned e) in poly() function
57 poly(a, b, c, d); in poly()
58 poly(a, d, e); in poly()
61 void poly(unsigned a, unsigned b, unsigned c, unsigned d, unsigned e, unsigned f) in poly() function
63 poly(a, b, c, d, e); in poly()
64 poly(a, e, f); in poly()
[all …]
/external/gptfdisk/
Dcrc32.cc52 unsigned long crc, poly; in chksum_crc32gentab() local
55 poly = 0xEDB88320L; in chksum_crc32gentab()
63 crc = (crc >> 1) ^ poly; in chksum_crc32gentab()
/external/llvm/test/CodeGen/XCore/
Dmisc-intrinsics.ll19 define i32 @crc32(i32 %crc, i32 %data, i32 %poly) {
22 %result = call i32 @llvm.xcore.crc32(i32 %crc, i32 %data, i32 %poly)
26 define %0 @crc8(i32 %crc, i32 %data, i32 %poly) {
29 %result = call %0 @llvm.xcore.crc8(i32 %crc, i32 %data, i32 %poly)
/external/lzma/xz-embedded/
Dxz_crc32.c32 const uint32_t poly = 0xEDB88320; in xz_crc32_init() local
41 r = (r >> 1) ^ (poly & ~((r & 1) - 1)); in xz_crc32_init()
/external/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/
Dfx_zlib_crc32.c94 z_crc_t poly; /* polynomial exclusive-or pattern */ in make_crc_table() local
106 poly = 0; in make_crc_table()
108 poly |= (z_crc_t)1 << (31 - p[n]); in make_crc_table()
114 c = c & 1 ? poly ^ (c >> 1) : c >> 1; in make_crc_table()
/external/skia/src/gpu/
DGrTessellatingPathRenderer.cpp394 Poly* poly = this; in addVertex() local
411 poly = partner; in addVertex()
421 return poly; in addVertex()
459 Poly* poly = ALLOC_NEW(Poly, (winding), alloc); in new_poly() local
460 poly->addVertex(v, Poly::kNeither_Side, alloc); in new_poly()
461 poly->fNext = *head; in new_poly()
462 *head = poly; in new_poly()
463 return poly; in new_poly()
1270 Poly* poly = new_poly(&polys, v, winding, alloc); in tessellate() local
1271 leftEdge->fRightPoly = rightEdge->fLeftPoly = poly; in tessellate()
[all …]
/external/zlib/src/
Dcrc32.c94 z_crc_t poly; /* polynomial exclusive-or pattern */ in make_crc_table() local
106 poly = 0; in make_crc_table()
108 poly |= (z_crc_t)1 << (31 - p[n]); in make_crc_table()
114 c = c & 1 ? poly ^ (c >> 1) : c >> 1; in make_crc_table()
/external/eigen/unsupported/Eigen/
DPolynomials55 void roots_to_monicPolynomial( const RootVector& rv, Polynomial& poly )
66 T poly_eval( const Polynomials& poly, const T& x )
79 Real cauchy_max_bound( const Polynomial& poly )
89 Real cauchy_min_bound( const Polynomial& poly )
/external/clang/test/SemaCXX/
Ddynamic-cast.cpp66 void poly() in poly() function
/external/libvpx/libvpx/third_party/libyuv/source/
Drow_common.cc2183 uint8* dst_argb, const float* poly, in ARGBPolynomialRow_C() argument
2195 float db = poly[0] + poly[4] * b; in ARGBPolynomialRow_C()
2196 float dg = poly[1] + poly[5] * g; in ARGBPolynomialRow_C()
2197 float dr = poly[2] + poly[6] * r; in ARGBPolynomialRow_C()
2198 float da = poly[3] + poly[7] * a; in ARGBPolynomialRow_C()
2203 db += poly[8] * b2; in ARGBPolynomialRow_C()
2204 dg += poly[9] * g2; in ARGBPolynomialRow_C()
2205 dr += poly[10] * r2; in ARGBPolynomialRow_C()
2206 da += poly[11] * a2; in ARGBPolynomialRow_C()
2207 db += poly[12] * b3; in ARGBPolynomialRow_C()
[all …]
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11gears/
Dd3d11gears.cpp154 indices.poly(teeth * segs + k, j, teeth * segs + nextk); in build_gear()
157 indices.poly(teeth * segs + nextj * divs, j, nextj); in build_gear()
197 indices.poly(0, 1, 3, 2); in build_gear()
215 indices.poly(i * 2, i * 2 + 1, next * 2 + 1, next * 2); in build_gear()
/external/skia/src/core/
DSkMatrix.cpp1275 static inline bool poly_to_point(SkPoint* pt, const SkPoint poly[], int count) { in poly_to_point() argument
1280 pt1.fX = poly[1].fX - poly[0].fX; in poly_to_point()
1281 pt1.fY = poly[1].fY - poly[0].fY; in poly_to_point()
1290 pt2.fX = poly[0].fY - poly[2].fY; in poly_to_point()
1291 pt2.fY = poly[2].fX - poly[0].fX; in poly_to_point()
1294 pt2.fX = poly[0].fY - poly[3].fY; in poly_to_point()
1295 pt2.fY = poly[3].fX - poly[0].fX; in poly_to_point()
/external/clang/test/Sema/
Dflexible-array-init.c47 struct polygon poly = { variable

12