/external/eigen/unsupported/Eigen/src/Polynomials/ |
D | PolynomialUtils.h | 28 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 …]
|
D | PolynomialSolver.h | 43 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 …]
|
D | Companion.h | 75 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/ |
D | polygon.c | 70 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 …]
|
D | polygon.h | 39 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);
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python2/crcmod/ |
D | crcmod.py | 88 def __init__(self, poly, initCrc=~0L, rev=True, xorOut=0, initialize=True): argument 94 (sizeBits, initCrc, xorOut) = _verifyParams(poly, initCrc, xorOut) 99 self.poly = poly 102 (crcfun, table) = _mkCrcFun(poly, sizeBits, initCrc, rev, xorOut) 110 lst.append('poly = 0x%X' % self.poly) 124 n = Crc(poly=None, initialize=False) 132 n.poly = self.poly 234 poly = 'polynomial: 0x%X' % self.poly 236 poly = poly + ', bit reverse algorithm' 261 'poly' : poly, [all …]
|
D | test.py | 92 class poly: class 122 return poly(self.p ^ x) 125 return poly(self.p ^ other.p) 128 return poly(self.p ^ other.p) 133 if a == 0 or b == 0: return poly(0) 140 return poly(x) 148 if n == 0: return (self,poly(0)) 149 if m < n: return (poly(0),self) 165 return (poly(q),poly(u)) 208 g8p = poly(g8) [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod_osx/crcmod/ |
D | crcmod.py | 88 def __init__(self, poly, initCrc=~0L, rev=True, xorOut=0, initialize=True): argument 94 (sizeBits, initCrc, xorOut) = _verifyParams(poly, initCrc, xorOut) 99 self.poly = poly 102 (crcfun, table) = _mkCrcFun(poly, sizeBits, initCrc, rev, xorOut) 110 lst.append('poly = 0x%X' % self.poly) 124 n = Crc(poly=None, initialize=False) 132 n.poly = self.poly 234 poly = 'polynomial: 0x%X' % self.poly 236 poly = poly + ', bit reverse algorithm' 261 'poly' : poly, [all …]
|
D | test.py | 92 class poly: class 122 return poly(self.p ^ x) 125 return poly(self.p ^ other.p) 128 return poly(self.p ^ other.p) 133 if a == 0 or b == 0: return poly(0) 140 return poly(x) 148 if n == 0: return (self,poly(0)) 149 if m < n: return (poly(0),self) 165 return (poly(q),poly(u)) 208 g8p = poly(g8) [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/crcmod/python3/crcmod/ |
D | crcmod.py | 89 def __init__(self, poly, initCrc=~0, rev=True, xorOut=0, initialize=True): argument 95 (sizeBits, initCrc, xorOut) = _verifyParams(poly, initCrc, xorOut) 100 self.poly = poly 103 (crcfun, table) = _mkCrcFun(poly, sizeBits, initCrc, rev, xorOut) 111 lst.append('poly = 0x%X' % self.poly) 125 n = Crc(poly=None, initialize=False) 133 n.poly = self.poly 235 poly = 'polynomial: 0x%X' % self.poly 237 poly = poly + ', bit reverse algorithm' 262 'poly' : poly, [all …]
|
D | test.py | 87 class poly: class 117 return poly(self.p ^ x) 120 return poly(self.p ^ other.p) 123 return poly(self.p ^ other.p) 128 if a == 0 or b == 0: return poly(0) 135 return poly(x) 143 if n == 0: return (self,poly(0)) 144 if m < n: return (poly(0),self) 160 return (poly(q),poly(u)) 203 g8p = poly(g8) [all …]
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/ |
D | com.badlogic.gdx.physics.box2d.PolygonShape.cpp | 11 b2PolygonShape* poly = new b2PolygonShape(); in Java_com_badlogic_gdx_physics_box2d_PolygonShape_newPolygonShape() local 12 return (jlong)poly; in Java_com_badlogic_gdx_physics_box2d_PolygonShape_newPolygonShape() 23 b2PolygonShape* poly = (b2PolygonShape*)addr; in Java_com_badlogic_gdx_physics_box2d_PolygonShape_jniSet() local 29 poly->Set(verticesOut, numVertices); in Java_com_badlogic_gdx_physics_box2d_PolygonShape_jniSet() 41 b2PolygonShape* poly = (b2PolygonShape*)addr; in Java_com_badlogic_gdx_physics_box2d_PolygonShape_jniSetAsBox__JFF() local 42 poly->SetAsBox(hx, hy); in Java_com_badlogic_gdx_physics_box2d_PolygonShape_jniSetAsBox__JFF() 52 b2PolygonShape* poly = (b2PolygonShape*)addr; in Java_com_badlogic_gdx_physics_box2d_PolygonShape_jniSetAsBox__JFFFFF() local 53 poly->SetAsBox( hx, hy, b2Vec2( centerX, centerY ), angle ); in Java_com_badlogic_gdx_physics_box2d_PolygonShape_jniSetAsBox__JFFFFF() 63 b2PolygonShape* poly = (b2PolygonShape*)addr; in Java_com_badlogic_gdx_physics_box2d_PolygonShape_jniGetVertexCount() local 64 return poly->GetVertexCount(); in Java_com_badlogic_gdx_physics_box2d_PolygonShape_jniGetVertexCount() [all …]
|
/external/ceres-solver/internal/ceres/ |
D | polynomial_test.cc | 51 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/ |
D | lfsr.c | 120 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/ |
D | regress-deep-proto.js | 28 function poly(x) { function 42 poly(one); 43 poly(two); 44 poly(three);
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
D | Box2DCharacterControllerTest.java | 123 PolygonShape poly = new PolygonShape(); in createBox() local 124 poly.setAsBox(width, height); in createBox() 125 box.createFixture(poly, density); in createBox() 126 poly.dispose(); in createBox() 136 EdgeShape poly = new EdgeShape(); in createEdge() local 137 poly.set(new Vector2(0, 0), new Vector2(x2 - x1, y2 - y1)); in createEdge() 138 box.createFixture(poly, density); in createEdge() 140 poly.dispose(); in createEdge() 150 CircleShape poly = new CircleShape(); in createCircle() local 151 poly.setRadius(radius); in createCircle() [all …]
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11app/ |
D | d3d11u.h | 42 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/ |
D | crc32.cc | 52 unsigned long crc, poly; in chksum_crc32gentab() local 55 poly = 0xEDB88320L; in chksum_crc32gentab() 63 crc = (crc >> 1) ^ poly; in chksum_crc32gentab()
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/box2d/ |
D | ContinuousTest.java | 56 PolygonShape poly = new PolygonShape(); in createWorld() local 57 poly.setAsBox(0.2f, 1.0f, new Vector2(0.5f, 1.0f), 0); in createWorld() 58 body.createFixture(poly, 0); in createWorld() 59 poly.dispose(); in createWorld()
|
/external/llvm/test/CodeGen/XCore/ |
D | misc-intrinsics.ll | 19 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/chromium-trace/catapult/third_party/flot/ |
D | jquery.flot.pie.js | 566 function isPointInPoly(poly, pt) { argument 567 for(var c = false, i = -1, l = poly.length, j = l - 1; ++i < l; j = i) 568 ((poly[i][1] <= pt[1] && pt[1] < poly[j][1]) || (poly[j][1] <= pt[1] && pt[1]< poly[i][1])) 569 …&& (pt[0] < (poly[j][0] - poly[i][0]) * (pt[1] - poly[i][1]) / (poly[j][1] - poly[i][1]) + poly[i]…
|
D | jquery.flot.pie.min.js | 7 …poly,pt){for(var c=false,i=-1,l=poly.length,j=l-1;++i<l;j=i)(poly[i][1]<=pt[1]&&pt[1]<poly[j][1]||… argument
|
/external/skia/src/gpu/ |
D | GrTessellator.cpp | 392 Poly* poly = this; in addVertex() local 409 poly = partner; in addVertex() 419 return poly; in addVertex() 457 Poly* poly = ALLOC_NEW(Poly, (winding), alloc); in new_poly() local 458 poly->addVertex(v, Poly::kNeither_Side, alloc); in new_poly() 459 poly->fNext = *head; in new_poly() 460 *head = poly; in new_poly() 461 return poly; in new_poly() 1271 Poly* poly = new_poly(&polys, v, winding, alloc); in tessellate() local 1272 leftEdge->fRightPoly = rightEdge->fLeftPoly = poly; in tessellate() [all …]
|
/external/lzma/xz-embedded/ |
D | xz_crc64.c | 23 const uint64_t poly = 0xC96C5795D7870F42; in xz_crc64_init() local 32 r = (r >> 1) ^ (poly & ~((r & 1) - 1)); in xz_crc64_init()
|
D | xz_crc32.c | 32 const uint32_t poly = 0xEDB88320; in xz_crc32_init() local 41 r = (r >> 1) ^ (poly & ~((r & 1) - 1)); in xz_crc32_init()
|