Home
last modified time | relevance | path

Searched refs:dims (Results 1 – 25 of 34) sorted by relevance

12

/external/javassist/src/main/javassist/bytecode/analysis/
DMultiArrayType.java28 private int dims; field in MultiArrayType
30 public MultiArrayType(MultiType component, int dims) { in MultiArrayType() argument
33 this.dims = dims; in MultiArrayType()
45 String name = arrayName(clazz.getName(), dims); in getCtClass()
59 return dims; in getDimensions()
63 return dims == 1 ? (Type)component : new MultiArrayType(component, dims - 1); in getComponent()
98 if (typeDims > dims) in isAssignableTo()
101 if (typeDims < dims) { in isAssignableTo()
122 return component.equals(multi.component) && dims == multi.dims; in equals()
127 return arrayName(component.toString(), dims); in toString()
DType.java319 private Type createArray(Type rootComponent, int dims) { in createArray() argument
321 return new MultiArrayType((MultiType) rootComponent, dims); in createArray()
323 String name = arrayName(rootComponent.clazz.getName(), dims); in createArray()
335 String arrayName(String component, int dims) { in arrayName() argument
339 int size = i + dims * 2; in arrayName()
/external/opencv/ml/src/
Dmlem.cpp173 m->cols != train_data.dims ) in set_params()
197 cov->rows != cov->cols || cov->cols != train_data.dims ) in set_params()
219 int i, k, dims; in predict() local
226 dims = means->cols; in predict()
229 CV_CALL( cvPreparePredictData( _sample, dims, 0, params.nclusters, _probs, &sample_data )); in predict()
232 size = sizeof(double) * (nclusters + dims); in predict()
241 diff = cvMat( 1, dims, CV_64FC1, (double*)buffer + nclusters ); in predict()
254 for( i = 0; i < dims; i++ ) in predict()
262 for( i = 0; i < dims; i++ ) in predict()
266 for( i = 0; i < dims; i++ ) in predict()
[all …]
Dmlrtrees.cpp309 const int dims = data->var_count; in grow_forest() local
343 CV_CALL(oob_samples_perm_ptr = (float*)cvAlloc( sizeof(float)*nsamples*dims )); in grow_forest()
344 CV_CALL(samples_ptr = (float*)cvAlloc( sizeof(float)*nsamples*dims )); in grow_forest()
345 CV_CALL(missing_ptr = (uchar*)cvAlloc( sizeof(uchar)*nsamples*dims )); in grow_forest()
377 sample = cvMat( 1, dims, CV_32FC1, samples_ptr ); in grow_forest()
378 missing = cvMat( 1, dims, CV_8UC1, missing_ptr ); in grow_forest()
382 sample.data.fl += dims, missing.data.ptr += dims ) in grow_forest()
433 memcpy( oob_samples_perm_ptr, samples_ptr, dims*nsamples*sizeof(float)); in grow_forest()
434 for( m = 0; m < dims; m++ ) in grow_forest()
449 CV_SWAP( mth_var_ptr[i1*dims], mth_var_ptr[i2*dims], temp ); in grow_forest()
[all …]
D_ml.h229 int dims = (matrice)->cols; \
232 int i, offset = dims; \
237 b = cvMat( 1, dims, CV_32FC1 ); \
/external/opencv/cv/src/
Dcvhistogram.cpp45 cvCreateHist( int dims, int *sizes, CvHistType type, float** ranges, int uniform ) in cvCreateHist() argument
52 if( (unsigned)dims > CV_MAX_DIM ) in cvCreateHist()
65 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvCreateHist()
71 CV_CALL( hist->bins = cvCreateSparseMat( dims, sizes, CV_HIST_DEFAULT_TYPE )); in cvCreateHist()
92 cvMakeHistHeaderForArray( int dims, int *sizes, CvHistogram *hist, in cvMakeHistHeaderForArray() argument
109 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvMakeHistHeaderForArray()
283 int i, dims, size[CV_MAX_DIM]; in cvGetMinMaxHistValue() local
288 dims = cvGetDims( hist->bins, size ); in cvGetMinMaxHistValue()
298 if( dims == 1 ) in cvGetMinMaxHistValue()
305 else if( dims == 2 ) in cvGetMinMaxHistValue()
[all …]
Dcvcalccontrasthistogram.cpp66 int dims;
71 dims = hist->c_dims;
72 if( dims != 1 )
78 for( i = 0; i < dims; i++ )
89 j = hist->dims[0] * hist->mdims[0];
91 int *n = (int *)cvAlloc( (size_t)hist->dims[0] * sizeof( int ));
179 int dims;
185 dims = hist->c_dims;
186 if( dims != 1 )
192 for( i = 0; i < dims; i++ )
[all …]
Dcvkdtree.cpp90 assert(d->cols == tr->dims()); in find_nn()
153 int dims() { in dims() function
155 dispatch_cvtype(mat, d = ((tree_type*) data)->dims()); in dims()
174 assert(bounds_min->rows * bounds_min->cols == dims()); in find_ortho_range()
175 assert(bounds_max->rows * bounds_max->cols == dims()); in find_ortho_range()
210 int dims = tr->dims(); in cvFindFeatures() local
216 if (desc->cols != dims) in cvFindFeatures()
247 int dims = tr->dims(); in cvFindFeaturesBoxed() local
253 if (bounds_min->cols * bounds_min->rows != dims || in cvFindFeaturesBoxed()
254 bounds_max->cols * bounds_max->rows != dims) in cvFindFeaturesBoxed()
Dcvemd.cpp119 int dims, CvDistanceFunction dist_func, void *user_param,
177 int dims, size1, size2; in cvCalcEMD2() local
185 dims = signature1->cols - 1; in cvCalcEMD2()
235 if( dims == 0 ) in cvCalcEMD2()
238 user_param = (void *) (size_t)dims; in cvCalcEMD2()
257 dims, dist_func, user_param, in cvCalcEMD2()
336 int dims, CvDistanceFunction dist_func, void* user_param, in icvInitEMD() argument
365 if( buffer_size < (int) (dims * 2 * sizeof( float ))) in icvInitEMD()
367 buffer_size = dims * 2 * sizeof( float ); in icvInitEMD()
400 float weight = signature1[i * (dims + 1)]; in icvInitEMD()
[all …]
Dcvpgh.cpp341 int dims; in cvCalcPGH() local
349 dims = cvGetDims( hist->bins, size ); in cvCalcPGH()
351 if( dims != 2 ) in cvCalcPGH()
/external/opencv/cvaux/src/
Dcamshift.cpp88 int dims[CV_MAX_DIM]; in color_transform() local
89 int i, n = get_hist_dims(dims); in color_transform()
160 int i, dims; in update_histogram() local
171 dims = cvGetDims( m_hist->bins ); in update_histogram()
172 for( i = 0; i < dims; i++ ) in update_histogram()
179 for( i = 0; i < dims; i++ ) in update_histogram()
182 for( i = 0; i < dims; i++ ) in update_histogram()
247 CvCamShiftTracker::set_hist_dims( int c_dims, int *dims ) in set_hist_dims() argument
249 if( (unsigned)(c_dims-1) >= (unsigned)CV_MAX_DIM || dims == 0 ) in set_hist_dims()
257 if( c_dims2 == c_dims && memcmp( dims, dims2, c_dims*sizeof(dims[0])) == 0 ) in set_hist_dims()
[all …]
/external/opencv/cxcore/src/
Dcxarray.cpp277 cvInitMatNDHeader( CvMatND* mat, int dims, const int* sizes, in cvInitMatNDHeader() argument
299 if( dims <= 0 || dims > CV_MAX_DIM ) in cvInitMatNDHeader()
303 for( i = dims - 1; i >= 0; i-- ) in cvInitMatNDHeader()
315 mat->dims = dims; in cvInitMatNDHeader()
335 cvCreateMatND( int dims, const int* sizes, int type ) in cvCreateMatND() argument
343 CV_CALL( arr = cvCreateMatNDHeader( dims, sizes, type )); in cvCreateMatND()
357 cvCreateMatNDHeader( int dims, const int* sizes, int type ) in cvCreateMatNDHeader() argument
365 if( dims <= 0 || dims > CV_MAX_DIM ) in cvCreateMatNDHeader()
371 CV_CALL( cvInitMatNDHeader( arr, dims, sizes, type, 0 )); in cvCreateMatNDHeader()
397 sizes = (int*)alloca( src->dims*sizeof(sizes[0]) ); in cvCloneMatND()
[all …]
Dcxutils.cpp61 int i, j, k, sample_count, dims; in cvKMeans2() local
91 dims = samples->cols*CV_MAT_CN(samples->type); in cvKMeans2()
94 CV_CALL( centers = cvCreateMat( cluster_count, dims, CV_64FC1 )); in cvKMeans2()
95 CV_CALL( old_centers = cvCreateMat( cluster_count, dims, CV_64FC1 )); in cvKMeans2()
116 for( j = 0; j <= dims - 4; j += 4 ) in cvKMeans2()
130 for( ; j < dims; j++ ) in cvKMeans2()
144 for( j = 0; j < dims; j++ ) in cvKMeans2()
151 for( j = 0; j < dims; j++ ) in cvKMeans2()
159 for( j = 0; j < dims; j++ ) in cvKMeans2()
182 for( ; j <= dims - 4; j += 4 ) in cvKMeans2()
[all …]
Dcxpersistence.cpp3631 int dims, sizes[CV_MAX_DIM]; in icvWriteMatND() local
3637 dims = cvGetDims( mat, sizes ); in icvWriteMatND()
3639 cvWriteRawData( fs, sizes, dims, "i" ); in icvWriteMatND()
3668 int sizes[CV_MAX_DIM], dims, elem_type; in icvReadMatND() local
3677 dims = CV_NODE_IS_SEQ(sizes_node->tag) ? sizes_node->data.seq->total : in icvReadMatND()
3680 if( dims <= 0 || dims > CV_MAX_DIM ) in icvReadMatND()
3690 for( total_size = CV_MAT_CN(elem_type), i = 0; i < dims; i++ ) in icvReadMatND()
3697 CV_CALL( mat = cvCreateMatND( dims, sizes, elem_type )); in icvReadMatND()
3720 int i, dims = *(int*)userdata; in icvSortIdxCmpFunc() local
3724 for( i = 0; i < dims; i++ ) in icvSortIdxCmpFunc()
[all …]
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
Dtransform.c53 int dims[1]; in WebRtcIsac_Time2Spec() local
58 dims[0] = FRAMESAMPLES_HALF; in WebRtcIsac_Time2Spec()
72 WebRtcIsac_Fftns(1, dims, tmpre, tmpim, -1, 1.0, fftstr_obj); in WebRtcIsac_Time2Spec()
97 int dims; in WebRtcIsac_Spec2time() local
99 dims = FRAMESAMPLES_HALF; in WebRtcIsac_Spec2time()
119 WebRtcIsac_Fftns(1, &dims, outre1, outre2, 1, FRAMESAMPLES_HALF, fftstr_obj); in WebRtcIsac_Spec2time()
Dfft.c159 int WebRtcIsac_Fftns(unsigned int ndim, const int dims[], in WebRtcIsac_Fftns() argument
176 if (ndim && dims [0]) in WebRtcIsac_Fftns()
180 if (dims [i] <= 0) in WebRtcIsac_Fftns()
184 nTotal *= dims [i]; in WebRtcIsac_Fftns()
190 for (i = 0; dims [i]; i++) in WebRtcIsac_Fftns()
192 if (dims [i] <= 0) in WebRtcIsac_Fftns()
196 nTotal *= dims [i]; in WebRtcIsac_Fftns()
210 nSpan = dims [i]; in WebRtcIsac_Fftns()
229 nSpan = dims [i]; in WebRtcIsac_Fftns()
Dfft.h40 int WebRtcIsac_Fftns (unsigned int ndim, const int dims[], double Re[], double Im[],
/external/emma/core/java12/com/vladium/util/
DDescriptors.java167 int dims; in typeDescriptorToJavaName() local
168 for (dims = 0; descriptor [start] == '['; ++ dims, ++ start); in typeDescriptorToJavaName()
221 if (dims > 0) in typeDescriptorToJavaName()
224 for (int d = 0; d < dims; ++ d) out.append ("[]"); in typeDescriptorToJavaName()
/external/opencv/cvaux/include/
Dcvaux.hpp74 int get_hist_dims( int* dims = 0 ) const // returns number of histogram dimensions and sets in get_hist_dims() argument
75 { return m_hist ? cvGetDims( m_hist->bins, dims ) : 0; } in get_hist_dims()
92 bool set_hist_dims( int c_dims, int* dims );// set the histogram parameters
/external/javassist/src/main/javassist/compiler/
DJvstTypeChecker.java199 public void atMethodArgs(ASTList args, int[] types, int[] dims, in atMethodArgs() argument
213 dims[i] = arrayDim; in atMethodArgs()
222 dims[i] = arrayDim; in atMethodArgs()
DTypeChecker.java53 protected static String argTypesToString(int[] types, int[] dims, in argTypesToString() argument
61 typeToString(sbuf, types[i], dims[i], cnames[i]); in argTypesToString()
700 int[] dims = new int[nargs]; in atMethodCallCore() local
702 atMethodArgs(args, types, dims, cnames); in atMethodCallCore()
706 mname, types, dims, cnames); in atMethodCallCore()
709 String signature = argTypesToString(types, dims, cnames); in atMethodCallCore()
728 public void atMethodArgs(ASTList args, int[] types, int[] dims, in atMethodArgs() argument
735 dims[i] = arrayDim; in atMethodArgs()
DMemberCodeGen.java544 int[] dims = new int[nargs]; in atMethodCallCore() local
555 atMethodArgs(args, types, dims, cnames); in atMethodCallCore()
562 mname, types, dims, cnames); in atMethodCallCore()
714 public void atMethodArgs(ASTList args, int[] types, int[] dims, in atMethodArgs() argument
721 dims[i] = arrayDim; in atMethodArgs()
DJvstCodeGen.java334 public void atMethodArgs(ASTList args, int[] types, int[] dims, in atMethodArgs() argument
350 dims[i] = arrayDim; in atMethodArgs()
359 dims[i] = arrayDim; in atMethodArgs()
/external/qemu/android/camera/
Dcamera-capture-linux.c55 CameraFrameDim* dims; member
161 if (fmt->dims != NULL) in _qemu_pixel_format_free()
162 free(fmt->dims); in _qemu_pixel_format_free()
725 &arr[out_num].dims); in _camera_device_enum_pixel_formats()
783 cis->frame_sizes = formats[chosen].dims; in _camera_device_get_info()
784 formats[chosen].dims = NULL; in _camera_device_get_info()
/external/jmonkeyengine/engine/src/ogre/com/jme3/scene/plugins/ogre/
DMeshLoader.java427 int dims = parseInt(attribs.getValue("texture_coord_dimensions_" + i), 2); in startVertexBuffer() local
428 if (dims < 1 || dims > 4) { in startVertexBuffer()
438 fb = BufferUtils.createFloatBuffer(vertCount * dims); in startVertexBuffer()
439 vb.setupData(Usage.Static, dims, Format.Float, fb); in startVertexBuffer()

12