/external/libvorbis/vq/ |
D | metrics.c | 53 return c->valuelist+i*c->c->dim; in _now() 76 histogram_error[i]=_ogg_calloc(b->entries*b->dim,sizeof(float)); in process_preprocess() 77 histogram_errorsq[i]=_ogg_calloc(b->entries*b->dim,sizeof(float)); in process_preprocess() 78 histogram_hi[i]=_ogg_calloc(b->entries*b->dim,sizeof(float)); in process_preprocess() 79 histogram_lo[i]=_ogg_calloc(b->entries*b->dim,sizeof(float)); in process_preprocess() 104 float this=_dist(c->c->dim,_now(c,j),_now(c,k)); in cell_spacing() 152 int dim=b->c->dim; in process_postprocess() local 166 for(k=0;k<dim;k++){ in process_postprocess() 168 i*dim+k,(b->valuelist+i*dim)[k], in process_postprocess() 169 sqrt((histogram_errorsq[book]+i*dim)[k]/histogram[book][i])); in process_postprocess() [all …]
|
/external/eigen/test/ |
D | umeyama.cpp | 91 void run_test(int dim, int num_elements) in run_test() argument 102 MatrixX R = randMatrixSpecialUnitary<Scalar>(dim); in run_test() 103 VectorX t = Scalar(50)*VectorX::Random(dim,1); in run_test() 105 MatrixX cR_t = MatrixX::Identity(dim+1,dim+1); in run_test() 106 cR_t.block(0,0,dim,dim) = c*R; in run_test() 107 cR_t.block(0,dim,dim,1) = t; in run_test() 109 MatrixX src = MatrixX::Random(dim+1, num_elements); in run_test() 110 src.row(dim) = Matrix<Scalar, 1, Dynamic>::Constant(num_elements, Scalar(1)); in run_test() 114 MatrixX cR_t_umeyama = umeyama(src.block(0,0,dim,num_elements), dst.block(0,0,dim,num_elements)); in run_test() 129 const int dim = Dimension; in run_fixed_size_test() local [all …]
|
D | real_qz.cpp | 23 Index dim = m.cols(); in real_qz() local 25 MatrixType A = MatrixType::Random(dim,dim), in real_qz() 26 B = MatrixType::Random(dim,dim); in real_qz() 30 Index k=internal::random<Index>(0, dim-1); in real_qz() 61 VERIFY_IS_APPROX(qz.matrixQ()*qz.matrixQ().adjoint(), MatrixType::Identity(dim,dim)); in real_qz() 62 VERIFY_IS_APPROX(qz.matrixZ()*qz.matrixZ().adjoint(), MatrixType::Identity(dim,dim)); in real_qz()
|
D | geo_alignedbox.cpp | 32 const Index dim = _box.dim(); in alignedbox() local 34 VectorType p0 = VectorType::Random(dim); in alignedbox() 35 VectorType p1 = VectorType::Random(dim); in alignedbox() 37 p1 = VectorType::Random(dim); } in alignedbox() 40 BoxType b0(dim); in alignedbox() 41 BoxType b1(VectorType::Random(dim),VectorType::Random(dim)); in alignedbox() 59 BoxType *bp0 = new BoxType(dim); in alignedbox() 60 BoxType *bp1 = new BoxType(dim); in alignedbox() 84 const Index dim = _box.dim(); in alignedboxCastTests() local 86 VectorType p0 = VectorType::Random(dim); in alignedboxCastTests() [all …]
|
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/MLCPSolvers/ |
D | btLemkeAlgorithm.cpp | 69 int dim = m_q.size(); in solve() local 72 cout << "Dimension = " << dim << endl; in solve() 76 btVectorXu solutionVector(2 * dim); in solve() 81 btMatrixXu ident(dim, dim); in solve() 89 btMatrixXu A(dim, 2 * dim + 2); in solve() 91 A.setSubMatrix(0, 0, dim - 1, dim - 1,ident); in solve() 92 A.setSubMatrix(0, dim, dim - 1, 2 * dim - 1,mNeg); in solve() 93 A.setSubMatrix(0, 2 * dim, dim - 1, 2 * dim, -1.f); in solve() 94 A.setSubMatrix(0, 2 * dim + 1, dim - 1, 2 * dim + 1,m_q); in solve() 106 for (int i = 0; i < dim; i++) in solve() [all …]
|
/external/ceres-solver/internal/ceres/ |
D | trust_region_minimizer_test.cc | 325 for (int dim = 0; dim < 2; dim++) { in Evaluate() local 326 const double diff = parameters[prev][dim] - parameters[i][dim]; in Evaluate() 343 for (int dim = 0; dim < 2; dim++) { in Evaluate() local 344 u[dim] = parameters[i][dim] - parameters[prev][dim]; in Evaluate() 345 norm_u += u[dim] * u[dim]; in Evaluate() 346 v[dim] = parameters[next][dim] - parameters[i][dim]; in Evaluate() 347 norm_v += v[dim] * v[dim]; in Evaluate() 353 for (int dim = 0; dim < 2; dim++) { in Evaluate() local 354 jacobians[i][dim] = 0.; in Evaluate() 357 jacobians[i][dim] -= u[dim] / norm_u; in Evaluate() [all …]
|
D | gradient_checker_test.cc | 56 GoodTestTerm(int arity, int const *dim) : arity_(arity) { in GoodTestTerm() argument 60 a_[j].resize(dim[j]); in GoodTestTerm() 61 for (int u = 0; u < dim[j]; ++u) { in GoodTestTerm() 67 mutable_parameter_block_sizes()->push_back(dim[i]); in GoodTestTerm() 109 BadTestTerm(int arity, int const *dim) : arity_(arity) { in BadTestTerm() argument 113 a_[j].resize(dim[j]); in BadTestTerm() 114 for (int u = 0; u < dim[j]; ++u) { in BadTestTerm() 120 mutable_parameter_block_sizes()->push_back(dim[i]); in BadTestTerm() 165 int const dim[arity] = { 2, 3, 4 }; in TEST() local 170 parameters[j] = new double[dim[j]]; in TEST() [all …]
|
D | gradient_checking_cost_function_test.cc | 72 TestTerm(int arity, int const *dim) : arity_(arity) { in TestTerm() argument 76 a_[j].resize(dim[j]); in TestTerm() 77 for (int u = 0; u < dim[j]; ++u) { in TestTerm() 83 mutable_parameter_block_sizes()->push_back(dim[i]); in TestTerm() 137 int const dim[arity] = { 2, 3, 4 }; in TEST() local 142 parameters[j] = new double[dim[j]]; in TEST() 143 for (int u = 0; u < dim[j]; ++u) { in TEST() 156 jacobians[j] = new double[dim[j]]; in TEST() 157 original_jacobians[j] = new double[dim[j]]; in TEST() 163 TestTerm<-1, -1> term(arity, dim); in TEST() [all …]
|
/external/opencv/cv/src/ |
D | _cvkdtree.hpp | 69 int dim; // split dimension; >=0 for nodes, -1 for leaves member 118 int dim, __valuector ctor) { in median_partition() argument 121 median_partition(first, last, k, dim, ctor); in median_partition() 128 int dim; member 132 : pivot(_pivot), dim(_dim), deref(_deref), ctor(_ctor) { in median_pr() 135 return deref(ctor(lhs), dim) <= deref(ctor(pivot), dim); in operator ()() 141 __instype * k, int dim, __valuector ctor) { in median_partition() argument 147 (last[-1], dim, deref, ctor)); in median_partition() 151 median_partition(middle + 1, last, k, dim, ctor); in median_partition() 153 median_partition(first, middle, k, dim, ctor); in median_partition() [all …]
|
/external/mesa3d/src/mesa/math/ |
D | m_eval.c | 75 GLuint dim, GLuint order) in _math_horner_bezier_curve() argument 84 for (k = 0; k < dim; k++) in _math_horner_bezier_curve() 85 out[k] = s * cp[k] + bincoeff * t * cp[dim + k]; in _math_horner_bezier_curve() 87 for (i = 2, cp += 2 * dim, powert = t * t; i < order; in _math_horner_bezier_curve() 88 i++, powert *= t, cp += dim) { in _math_horner_bezier_curve() 92 for (k = 0; k < dim; k++) in _math_horner_bezier_curve() 98 for (k = 0; k < dim; k++) in _math_horner_bezier_curve() 119 GLuint dim, GLuint uorder, GLuint vorder) in _math_horner_bezier_surf() argument 121 GLfloat *cp = cn + uorder * vorder * dim; in _math_horner_bezier_surf() 122 GLuint i, uinc = vorder * dim; in _math_horner_bezier_surf() [all …]
|
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/pshinter/ |
D | pshrec.c | 567 ps_dimension_set_mask_bit( PS_Dimension dim, 576 error = ps_mask_table_last( &dim->masks, memory, &mask ); 590 ps_dimension_end_mask( PS_Dimension dim, in ps_dimension_end_mask() argument 593 FT_UInt count = dim->masks.num_masks; in ps_dimension_end_mask() 598 PS_Mask mask = dim->masks.masks + count - 1; in ps_dimension_end_mask() 609 ps_dimension_reset_mask( PS_Dimension dim, in ps_dimension_reset_mask() argument 617 ps_dimension_end_mask( dim, end_point ); in ps_dimension_reset_mask() 620 return ps_mask_table_alloc( &dim->masks, memory, &mask ); in ps_dimension_reset_mask() 626 ps_dimension_set_mask_bits( PS_Dimension dim, in ps_dimension_set_mask_bits() argument 637 error = ps_dimension_reset_mask( dim, end_point, memory ); in ps_dimension_set_mask_bits() [all …]
|
D | pshglob.c | 44 PSH_Dimension dim = &globals->dimension[direction]; in psh_globals_scale_widths() local 45 PSH_Widths stdw = &dim->stdw; in psh_globals_scale_widths() 49 FT_Fixed scale = dim->scale_mult; in psh_globals_scale_widths() 319 FT_Int dim, top, bot, delta; in psh_blues_set_zones() local 326 for ( dim = 1; dim >= 0; dim-- ) in psh_blues_set_zones() 663 PSH_Dimension dim = &globals->dimension[1]; in psh_globals_new() local 664 PSH_Width write = dim->stdw.widths; in psh_globals_new() 678 dim->stdw.count = priv->num_snap_widths + 1; in psh_globals_new() 683 PSH_Dimension dim = &globals->dimension[0]; in psh_globals_new() local 684 PSH_Width write = dim->stdw.widths; in psh_globals_new() [all …]
|
/external/freetype/src/pshinter/ |
D | pshrec.c | 567 ps_dimension_set_mask_bit( PS_Dimension dim, 576 error = ps_mask_table_last( &dim->masks, memory, &mask ); 590 ps_dimension_end_mask( PS_Dimension dim, in ps_dimension_end_mask() argument 593 FT_UInt count = dim->masks.num_masks; in ps_dimension_end_mask() 598 PS_Mask mask = dim->masks.masks + count - 1; in ps_dimension_end_mask() 609 ps_dimension_reset_mask( PS_Dimension dim, in ps_dimension_reset_mask() argument 617 ps_dimension_end_mask( dim, end_point ); in ps_dimension_reset_mask() 620 return ps_mask_table_alloc( &dim->masks, memory, &mask ); in ps_dimension_reset_mask() 626 ps_dimension_set_mask_bits( PS_Dimension dim, in ps_dimension_set_mask_bits() argument 637 error = ps_dimension_reset_mask( dim, end_point, memory ); in ps_dimension_set_mask_bits() [all …]
|
D | pshglob.c | 44 PSH_Dimension dim = &globals->dimension[direction]; in psh_globals_scale_widths() local 45 PSH_Widths stdw = &dim->stdw; in psh_globals_scale_widths() 49 FT_Fixed scale = dim->scale_mult; in psh_globals_scale_widths() 319 FT_Int dim, top, bot, delta; in psh_blues_set_zones() local 326 for ( dim = 1; dim >= 0; dim-- ) in psh_blues_set_zones() 663 PSH_Dimension dim = &globals->dimension[1]; in psh_globals_new() local 664 PSH_Width write = dim->stdw.widths; in psh_globals_new() 678 dim->stdw.count = priv->num_snap_widths + 1; in psh_globals_new() 683 PSH_Dimension dim = &globals->dimension[0]; in psh_globals_new() local 684 PSH_Width write = dim->stdw.widths; in psh_globals_new() [all …]
|
/external/pdfium/third_party/freetype/src/pshinter/ |
D | pshrec.c | 567 ps_dimension_set_mask_bit( PS_Dimension dim, 576 error = ps_mask_table_last( &dim->masks, memory, &mask ); 590 ps_dimension_end_mask( PS_Dimension dim, in ps_dimension_end_mask() argument 593 FT_UInt count = dim->masks.num_masks; in ps_dimension_end_mask() 598 PS_Mask mask = dim->masks.masks + count - 1; in ps_dimension_end_mask() 609 ps_dimension_reset_mask( PS_Dimension dim, in ps_dimension_reset_mask() argument 617 ps_dimension_end_mask( dim, end_point ); in ps_dimension_reset_mask() 620 return ps_mask_table_alloc( &dim->masks, memory, &mask ); in ps_dimension_reset_mask() 626 ps_dimension_set_mask_bits( PS_Dimension dim, in ps_dimension_set_mask_bits() argument 637 error = ps_dimension_reset_mask( dim, end_point, memory ); in ps_dimension_set_mask_bits() [all …]
|
D | pshglob.c | 44 PSH_Dimension dim = &globals->dimension[direction]; in psh_globals_scale_widths() local 45 PSH_Widths stdw = &dim->stdw; in psh_globals_scale_widths() 49 FT_Fixed scale = dim->scale_mult; in psh_globals_scale_widths() 319 FT_Int dim, top, bot, delta; in psh_blues_set_zones() local 326 for ( dim = 1; dim >= 0; dim-- ) in psh_blues_set_zones() 663 PSH_Dimension dim = &globals->dimension[1]; in psh_globals_new() local 664 PSH_Width write = dim->stdw.widths; in psh_globals_new() 678 dim->stdw.count = priv->num_snap_widths + 1; in psh_globals_new() 683 PSH_Dimension dim = &globals->dimension[0]; in psh_globals_new() local 684 PSH_Width write = dim->stdw.widths; in psh_globals_new() [all …]
|
/external/freetype/src/autofit/ |
D | afcjk.c | 92 int dim; in af_cjk_metrics_init_widths() local 167 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_cjk_metrics_init_widths() 169 AF_CJKAxis axis = &metrics->axis[dim]; in af_cjk_metrics_init_widths() 170 AF_AxisHints axhints = &hints->axis[dim]; in af_cjk_metrics_init_widths() 176 (AF_Dimension)dim ); in af_cjk_metrics_init_widths() 183 (AF_Dimension)dim ); in af_cjk_metrics_init_widths() 215 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_cjk_metrics_init_widths() 217 AF_CJKAxis axis = &metrics->axis[dim]; in af_cjk_metrics_init_widths() 235 dim == AF_DIMENSION_VERT ? "horizontal" in af_cjk_metrics_init_widths() 586 AF_Dimension dim ) in af_cjk_metrics_scale_dim() argument [all …]
|
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/autofit/ |
D | afcjk.c | 92 int dim; in af_cjk_metrics_init_widths() local 167 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_cjk_metrics_init_widths() 169 AF_CJKAxis axis = &metrics->axis[dim]; in af_cjk_metrics_init_widths() 170 AF_AxisHints axhints = &hints->axis[dim]; in af_cjk_metrics_init_widths() 176 (AF_Dimension)dim ); in af_cjk_metrics_init_widths() 183 (AF_Dimension)dim ); in af_cjk_metrics_init_widths() 215 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_cjk_metrics_init_widths() 217 AF_CJKAxis axis = &metrics->axis[dim]; in af_cjk_metrics_init_widths() 235 dim == AF_DIMENSION_VERT ? "horizontal" in af_cjk_metrics_init_widths() 586 AF_Dimension dim ) in af_cjk_metrics_scale_dim() argument [all …]
|
D | aflatin2.c | 44 AF_Dimension dim ); 48 AF_Dimension dim ); 74 int dim; in af_latin2_metrics_init_widths() local 104 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_latin2_metrics_init_widths() 106 AF_LatinAxis axis = &metrics->axis[dim]; in af_latin2_metrics_init_widths() 107 AF_AxisHints axhints = &hints->axis[dim]; in af_latin2_metrics_init_widths() 113 (AF_Dimension)dim ); in af_latin2_metrics_init_widths() 118 (AF_Dimension)dim ); in af_latin2_metrics_init_widths() 147 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_latin2_metrics_init_widths() 149 AF_LatinAxis axis = &metrics->axis[dim]; in af_latin2_metrics_init_widths() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_tex_layout.c | 117 const GLuint dim = mt->width0; in i915_miptree_layout_cube() local 125 mt->total_width = dim * 2; in i915_miptree_layout_cube() 126 mt->total_height = dim * 4; in i915_miptree_layout_cube() 138 GLuint x = initial_offsets[face][0] * dim; in i915_miptree_layout_cube() 139 GLuint y = initial_offsets[face][1] * dim; in i915_miptree_layout_cube() 140 GLuint d = dim; in i915_miptree_layout_cube() 315 const GLuint dim = mt->width0; in i945_miptree_layout_cube() local 326 if (dim > 32) in i945_miptree_layout_cube() 327 mt->total_width = dim * 2; in i945_miptree_layout_cube() 331 if (dim >= 4) in i945_miptree_layout_cube() [all …]
|
/external/skia/src/opts/ |
D | SkColorCubeFilter_opts.h | 19 int dim, in color_cube_filter_span() argument 48 const int i00 = (colorToIndex[0][g] + colorToIndex[0][b] * dim) * dim; in color_cube_filter_span() 49 const int i01 = (colorToIndex[0][g] + colorToIndex[1][b] * dim) * dim; in color_cube_filter_span() 50 const int i10 = (colorToIndex[1][g] + colorToIndex[0][b] * dim) * dim; in color_cube_filter_span() 51 const int i11 = (colorToIndex[1][g] + colorToIndex[1][b] * dim) * dim; in color_cube_filter_span()
|
/external/tremolo/Tremolo/ |
D | codebook.c | 74 for(j=0;j<b->dim;j++){ in decpack() 80 for(j=0;j<b->dim;j++) in decpack() 86 for(j=0;j<b->dim;j++){ in decpack() 373 int vals=b->entries>>((bits-1)*(b->dim-1)/b->dim); in _book_maptype1_quantvals() 379 for(i=0;i<b->dim;i++){ in _book_maptype1_quantvals() 417 s->dim=oggpack_read(opb,16); in vorbis_book_unpack() 418 s->dec_buf=_ogg_malloc(sizeof(ogg_int32_t)*s->dim); in vorbis_book_unpack() 423 if(s->dim<=0)goto _eofout; in vorbis_book_unpack() 424 if(_ilog(s->dim)+_ilog(s->entries)>24)goto _eofout; in vorbis_book_unpack() 425 if (s->dim > INT_MAX/s->entries) goto _eofout; in vorbis_book_unpack() [all …]
|
/external/javassist/src/main/javassist/compiler/ast/ |
D | Declarator.java | 30 public Declarator(int type, int dim) { in Declarator() argument 33 arrayDim = dim; in Declarator() 38 public Declarator(ASTList className, int dim) { in Declarator() argument 41 arrayDim = dim; in Declarator() 48 public Declarator(int type, String jvmClassName, int dim, in Declarator() argument 52 arrayDim = dim; in Declarator() 59 public Declarator make(Symbol sym, int dim, ASTree init) { in make() argument 60 Declarator d = new Declarator(this.varType, this.arrayDim + dim); in make()
|
/external/libvorbis/lib/ |
D | codebook.c | 36 oggpack_write(opb,c->dim,16); in vorbis_staticbook_pack() 127 quantvals=c->entries*c->dim; in vorbis_staticbook_pack() 158 s->dim=oggpack_read(opb,16); in vorbis_staticbook_unpack() 162 if(_ilog(s->dim)+_ilog(s->entries)>24)goto _eofout; in vorbis_staticbook_unpack() 232 quantvals=(s->dim==0?0:_book_maptype1_quantvals(s)); in vorbis_staticbook_unpack() 235 quantvals=s->entries*s->dim; in vorbis_staticbook_unpack() 359 int step=n/book->dim; in vorbis_book_decodevs_add() 367 t[i] = book->valuelist+entry[i]*book->dim; in vorbis_book_decodevs_add() 369 for(i=0,o=0;i<book->dim;i++,o+=step) in vorbis_book_decodevs_add() 381 if(book->dim>8){ in vorbis_book_decodev_add() [all …]
|
/external/eigen/test/eigen2/ |
D | eigen2_alignedbox.cpp | 21 const int dim = _box.dim(); in alignedbox() local 26 VectorType p0 = VectorType::Random(dim); in alignedbox() 27 VectorType p1 = VectorType::Random(dim); in alignedbox() 30 BoxType b0(dim); in alignedbox() 31 BoxType b1(VectorType::Random(dim),VectorType::Random(dim)); in alignedbox()
|