/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 | 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() 60 BoxType box1(VectorType::Random(dim)); in alignedbox() 61 box1.extend(VectorType::Random(dim)); in alignedbox() 62 BoxType box2(VectorType::Random(dim)); in alignedbox() 63 box2.extend(VectorType::Random(dim)); in alignedbox() [all …]
|
D | real_qz.cpp | 24 Index dim = m.cols(); in real_qz() local 26 MatrixType A = MatrixType::Random(dim,dim), in real_qz() 27 B = MatrixType::Random(dim,dim); in real_qz() 31 Index k=internal::random<Index>(0, dim-1); in real_qz() 45 RealQZ<MatrixType> qz(dim); in real_qz() 75 VERIFY_IS_APPROX(qz.matrixQ()*qz.matrixQ().adjoint(), MatrixType::Identity(dim,dim)); in real_qz() 76 VERIFY_IS_APPROX(qz.matrixZ()*qz.matrixZ().adjoint(), MatrixType::Identity(dim,dim)); in real_qz()
|
/external/llvm/test/Transforms/LoopVectorize/X86/ |
D | register-assumption.ll | 8 br label %loop_exit.dim.11.critedge 10 loop_exit.dim.11.critedge: ; preds = %loop_body.dim.0 14 br label %loop_header.dim.017.preheader 16 loop_header.dim.017.preheader: ; preds = %loop_exit.dim.016, %loop_exit.dim.11.c… 17 br label %loop_body.dim.018 19 loop_body.dim.018: ; preds = %loop_body.dim.018, %loop_header.dim.01… 20 …%invar_address.dim.019.0135 = phi i64 [ 0, %loop_header.dim.017.preheader ], [ %0, %loop_body.dim.… 24 %0 = add nuw nsw i64 %invar_address.dim.019.0135, 1 26 br i1 %1, label %loop_header.dim.017.preheader, label %loop_body.dim.018
|
/external/mesa3d/src/gallium/state_trackers/nine/ |
D | nine_ff.h | 85 unsigned dim = context->ff.tex_stage[s][D3DTSS_TEXTURETRANSFORMFLAGS] & 0x7; in nine_ff_get_projected_key() local 89 if (dim > 4) in nine_ff_get_projected_key() 90 dim = input_texture_coord[s]; in nine_ff_get_projected_key() 92 if (!dim && gen == NINED3DTSS_TCI_PASSTHRU) in nine_ff_get_projected_key() 93 dim = input_texture_coord[s]; in nine_ff_get_projected_key() 94 else if (!dim) in nine_ff_get_projected_key() 95 dim = 4; in nine_ff_get_projected_key() 97 if (dim == 1) /* NV behaviour */ in nine_ff_get_projected_key() 99 if (dim > input_texture_coord[s] && gen == NINED3DTSS_TCI_PASSTHRU) in nine_ff_get_projected_key() 102 dim = 4; in nine_ff_get_projected_key() [all …]
|
/external/eigen/unsupported/test/ |
D | cxx11_tensor_argmax.cpp | 166 for (int dim = 0; dim < 4; ++dim) { in test_argmax_dim() local 177 if (ix[dim] != 0) continue; in test_argmax_dim() 185 tensor_argmax = tensor.argmax(dim); in test_argmax_dim() 188 ptrdiff_t(2*3*5*7 / tensor.dimension(dim))); in test_argmax_dim() 199 if (ix[dim] != tensor.dimension(dim) - 1) continue; in test_argmax_dim() 207 tensor_argmax = tensor.argmax(dim); in test_argmax_dim() 210 ptrdiff_t(2*3*5*7 / tensor.dimension(dim))); in test_argmax_dim() 213 VERIFY_IS_EQUAL(tensor_argmax.data()[n], tensor.dimension(dim) - 1); in test_argmax_dim() 224 for (int dim = 0; dim < 4; ++dim) { in test_argmin_dim() local 235 if (ix[dim] != 0) continue; in test_argmin_dim() [all …]
|
D | cxx11_tensor_argmax_cuda.cu | 75 for (int dim = 0; dim < 4; ++dim) { in test_cuda_argmax_dim() local 80 for (int d = 0; d < 3; ++d) out_shape[d] = (d < dim) ? dims[d] : dims[d+1]; in test_cuda_argmax_dim() 90 if (ix[dim] != 0) continue; in test_cuda_argmax_dim() 114 gpu_out.device(gpu_device) = gpu_in.argmax(dim); in test_cuda_argmax_dim() 120 size_t(2*3*5*7 / tensor.dimension(dim))); in test_cuda_argmax_dim() 132 if (ix[dim] != tensor.dimension(dim) - 1) continue; in test_cuda_argmax_dim() 142 gpu_out.device(gpu_device) = gpu_in.argmax(dim); in test_cuda_argmax_dim() 149 VERIFY_IS_EQUAL(tensor_arg.data()[n], tensor.dimension(dim) - 1); in test_cuda_argmax_dim() 164 for (int dim = 0; dim < 4; ++dim) { in test_cuda_argmin_dim() local 169 for (int d = 0; d < 3; ++d) out_shape[d] = (d < dim) ? dims[d] : dims[d+1]; in test_cuda_argmin_dim() [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/Microsoft-GSL/tests/ |
D | strided_span_tests.cpp | 52 const multi_span<int, 5, 10> av = as_multi_span(multi_span<int>{data}, dim<5>(), dim<10>()); in SUITE() 261 … const multi_span<int, 5, 10> src = as_multi_span(multi_span<int>{data}, dim<5>(), dim<10>()); in SUITE() 416 strided_span<int, 2> sav5{ av.as_multi_span(dim<2>(), dim<2>()), { 1 } }; in SUITE() 417 strided_span<int, 2> sav6{ av.as_multi_span(dim<2>(), dim<2>()), { 1,1,1 } }; in SUITE() 418 strided_span<int, 2> sav7{ av.as_multi_span(dim<2>(), dim<2>()), { { 1,1 },{ 1,1 },{ 1,1 } } }; in SUITE() 425 strided_span<int, 2> sav12{ av.as_multi_span(dim<2>(), dim<2>()),{ { 1 },{ 1 } } }; in SUITE() 426 strided_span<int, 2> sav13{ av.as_multi_span(dim<2>(), dim<2>()),{ { 1 },{ 1,1,1 } } }; in SUITE() 427 strided_span<int, 2> sav14{ av.as_multi_span(dim<2>(), dim<2>()),{ { 1,1,1 },{ 1 } } }; in SUITE() 466 …multi_span<const byte, 2, dynamic_range> bytes2 = as_multi_span(bytes, dim<2>(), dim(bytes.size() … in SUITE() 478 …multi_span<const byte, 2, dynamic_range> bytes2 = as_multi_span(bytes, dim<2>(), dim(bytes.size() … in SUITE() [all …]
|
D | multi_span_tests.cpp | 688 auto av2 = as_multi_span(av, dim<60>()); in SUITE() 689 auto av3 = as_multi_span(av2, dim<3>(), dim<4>(), dim<5>()); in SUITE() 690 auto av4 = as_multi_span(av3, dim<4>(), dim(3), dim<5>()); in SUITE() 691 auto av5 = as_multi_span(av4, dim<3>(), dim<4>(), dim<5>()); in SUITE() 692 auto av6 = as_multi_span(av5, dim<12>(), dim(5)); in SUITE() 957 multi_span<int, 20> s3 = as_multi_span(s1, dim(20)); in SUITE() 1131 overloaded_func(as_multi_span(av, dim(4), dim(3), dim(5)), 34); in SUITE() 1146 as_multi_span(as_multi_span(image_ptr, imgSize), dim(height), dim(width), dim<3>()); in SUITE() 1174 auto av = as_multi_span(arr, dim<10>(), dim(3), dim<5>()); in SUITE() 1183 overloaded_func(as_multi_span(av2, dim(1), dim<3>(), dim<5>()), 0); in SUITE() [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 | 91 int dim; in af_cjk_metrics_init_widths() local 182 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_cjk_metrics_init_widths() 184 AF_CJKAxis axis = &metrics->axis[dim]; in af_cjk_metrics_init_widths() 185 AF_AxisHints axhints = &hints->axis[dim]; in af_cjk_metrics_init_widths() 191 (AF_Dimension)dim ); in af_cjk_metrics_init_widths() 204 (AF_Dimension)dim ); in af_cjk_metrics_init_widths() 236 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_cjk_metrics_init_widths() 238 AF_CJKAxis axis = &metrics->axis[dim]; in af_cjk_metrics_init_widths() 256 dim == AF_DIMENSION_VERT ? "horizontal" in af_cjk_metrics_init_widths() 647 AF_Dimension dim ) in af_cjk_metrics_scale_dim() argument [all …]
|
D | aflatin2.c | 49 AF_Dimension dim ); 53 AF_Dimension dim ); 79 int dim; in af_latin2_metrics_init_widths() local 109 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_latin2_metrics_init_widths() 111 AF_LatinAxis axis = &metrics->axis[dim]; in af_latin2_metrics_init_widths() 112 AF_AxisHints axhints = &hints->axis[dim]; in af_latin2_metrics_init_widths() 118 (AF_Dimension)dim ); in af_latin2_metrics_init_widths() 123 (AF_Dimension)dim ); in af_latin2_metrics_init_widths() 152 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_latin2_metrics_init_widths() 154 AF_LatinAxis axis = &metrics->axis[dim]; in af_latin2_metrics_init_widths() [all …]
|
D | aflatin.c | 82 int dim; in af_latin_metrics_init_widths() local 175 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_latin_metrics_init_widths() 177 AF_LatinAxis axis = &metrics->axis[dim]; in af_latin_metrics_init_widths() 178 AF_AxisHints axhints = &hints->axis[dim]; in af_latin_metrics_init_widths() 184 (AF_Dimension)dim ); in af_latin_metrics_init_widths() 197 (AF_Dimension)dim ); in af_latin_metrics_init_widths() 229 for ( dim = 0; dim < AF_DIMENSION_MAX; dim++ ) in af_latin_metrics_init_widths() 231 AF_LatinAxis axis = &metrics->axis[dim]; in af_latin_metrics_init_widths() 249 dim == AF_DIMENSION_VERT ? "horizontal" in af_latin_metrics_init_widths() 1118 AF_Dimension dim ) in af_latin_metrics_scale_dim() argument [all …]
|
/external/skia/tools/gpu/ |
D | GrTest.cpp | 36 int dim = GrDrawOpAtlas::kGlyphMaxDim; in SetupAlwaysEvictAtlas() local 38 configs[kA8_GrMaskFormat].fWidth = dim; in SetupAlwaysEvictAtlas() 39 configs[kA8_GrMaskFormat].fHeight = dim; in SetupAlwaysEvictAtlas() 40 configs[kA8_GrMaskFormat].fLog2Width = SkNextLog2(dim); in SetupAlwaysEvictAtlas() 41 configs[kA8_GrMaskFormat].fLog2Height = SkNextLog2(dim); in SetupAlwaysEvictAtlas() 42 configs[kA8_GrMaskFormat].fPlotWidth = dim; in SetupAlwaysEvictAtlas() 43 configs[kA8_GrMaskFormat].fPlotHeight = dim; in SetupAlwaysEvictAtlas() 45 configs[kA565_GrMaskFormat].fWidth = dim; in SetupAlwaysEvictAtlas() 46 configs[kA565_GrMaskFormat].fHeight = dim; in SetupAlwaysEvictAtlas() 47 configs[kA565_GrMaskFormat].fLog2Width = SkNextLog2(dim); in SetupAlwaysEvictAtlas() [all …]
|
/external/llvm/test/CodeGen/PowerPC/ |
D | ctr-minmaxnum.ll | 27 %invar_address.dim.0.01 = phi i64 [ 0, %entry ], [ %1, %loop_body ] 30 %1 = add i64 %invar_address.dim.0.01, 1 47 %invar_address.dim.0.01 = phi i64 [ 0, %entry ], [ %1, %loop_body ] 50 %1 = add i64 %invar_address.dim.0.01, 1 72 %invar_address.dim.0.01 = phi i64 [ 0, %entry ], [ %1, %loop_body ] 75 %1 = add i64 %invar_address.dim.0.01, 1 92 %invar_address.dim.0.01 = phi i64 [ 0, %entry ], [ %1, %loop_body ] 95 %1 = add i64 %invar_address.dim.0.01, 1 112 %invar_address.dim.0.01 = phi i64 [ 0, %entry ], [ %1, %loop_body ] 115 %1 = add i64 %invar_address.dim.0.01, 1 [all …]
|
/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() 390 if (i >= b->dim && acc <= b->entries && acc1 > b->entries) { in _book_maptype1_quantvals() 393 if (i < b->dim || acc > b->entries) { in _book_maptype1_quantvals() 424 s->dim=oggpack_read(opb,16); in vorbis_book_unpack() 425 s->dec_buf=_ogg_malloc(sizeof(ogg_int32_t)*s->dim); in vorbis_book_unpack() 430 if(s->dim<=0)goto _eofout; in vorbis_book_unpack() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_tex_layout.c | 117 const GLuint dim = mt->physical_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->physical_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/mesa3d/src/amd/addrlib/core/ |
D | addrcommon.h | 286 UINT_32 dim) ///< [in] dimension of miplevel in IsPow2() argument 288 ADDR_ASSERT(dim > 0); in IsPow2() 289 return !(dim & (dim - 1)); in IsPow2() 301 UINT_64 dim) ///< [in] dimension of miplevel in IsPow2() argument 303 ADDR_ASSERT(dim > 0); in IsPow2() 304 return !(dim & (dim - 1)); in IsPow2() 414 UINT_32 dim) ///< [in] dimension of miplevel in NextPow2() argument 420 if (dim > 0x7fffffff) in NextPow2() 427 while (newDim < dim) in NextPow2()
|
/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/llvm/test/CodeGen/AMDGPU/ |
D | llvm.r600.read.workdim.ll | 8 %dim = call i32 @llvm.r600.read.workdim() #0 9 store i32 %dim, i32 addrspace(1)* %out 16 %dim = call i32 @llvm.r600.read.workdim() #0 17 %shl = shl i32 %dim, 24 28 %dim = call i32 @llvm.AMDGPU.read.workdim() #0 29 store i32 %dim, i32 addrspace(1)* %out
|
/external/javassist/src/main/javassist/expr/ |
D | NewArray.java | 88 int dim = Descriptor.arrayDimension(desc); in getComponentType() local 89 desc = Descriptor.toArrayComponent(desc, dim); in getComponentType() 179 int dim = 1; in replace2() local 200 dim = iterator.byteAt(currentPos + 3); in replace2() 211 CtClass[] params = new CtClass[dim]; in replace2() 212 for (int i = 0; i < dim; ++i) in replace2() 223 jc.recordProceed(new ProceedForArray(retType, opcode, index, dim)); in replace2() 245 ProceedForArray(CtClass type, int op, int i, int dim) { in ProceedForArray() argument 249 dimension = dim; in ProceedForArray()
|