/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/ |
FirstOrderConverter.java | 29 * <p>The transformation is done by changing the n dimension state 30 * vector to a 2n dimension vector, where the first n components are 63 /** second order problem dimension. */ 64 private final int dimension; field in class:FirstOrderConverter 81 dimension = equations.getDimension(); 82 z = new double[dimension]; 83 zDot = new double[dimension]; 84 zDDot = new double[dimension]; 87 /** Get the dimension of the problem. 88 * <p>The dimension of the first order problem is twice th [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
UnitSphereRandomVectorGenerator.java | 37 * Space dimension. 39 private final int dimension; field in class:UnitSphereRandomVectorGenerator 42 * @param dimension Space dimension. 45 public UnitSphereRandomVectorGenerator(final int dimension, 47 this.dimension = dimension; 54 * @param dimension Space dimension. 56 public UnitSphereRandomVectorGenerator(final int dimension) { [all...] |
UncorrelatedRandomVectorGenerator.java | 67 * @param dimension dimension of the vectors to generate 71 public UncorrelatedRandomVectorGenerator(int dimension, 73 mean = new double[dimension]; 74 standardDeviation = new double[dimension];
|
/packages/apps/Messaging/tools/messagegen/ |
listimages | 18 dimension=`identify -format "%w %h" $file` 20 echo "$file $dimension $size"
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/exception/ |
DimensionMismatchException.java | 32 /** Correct dimension. */ 33 private final int dimension; field in class:DimensionMismatchException 38 * @param wrong Wrong dimension. 39 * @param expected Expected dimension. 44 dimension = expected; 48 * @return the expected dimension. 51 return dimension;
|
/external/eigen/unsupported/test/ |
cxx11_tensor_layout_swap.cpp | 22 VERIFY_IS_EQUAL(tensor.dimension(0), tensor2.dimension(2)); 23 VERIFY_IS_EQUAL(tensor.dimension(1), tensor2.dimension(1)); 24 VERIFY_IS_EQUAL(tensor.dimension(2), tensor2.dimension(0)); 43 VERIFY_IS_EQUAL(tensor.dimension(0), tensor2.dimension(2)); 44 VERIFY_IS_EQUAL(tensor.dimension(1), tensor2.dimension(1)) [all...] |
cxx11_tensor_patch.cpp | 32 VERIFY_IS_EQUAL(no_patch.dimension(0), 1); 33 VERIFY_IS_EQUAL(no_patch.dimension(1), 1); 34 VERIFY_IS_EQUAL(no_patch.dimension(2), 1); 35 VERIFY_IS_EQUAL(no_patch.dimension(3), 1); 36 VERIFY_IS_EQUAL(no_patch.dimension(4), tensor.size()); 38 VERIFY_IS_EQUAL(no_patch.dimension(0), tensor.size()); 39 VERIFY_IS_EQUAL(no_patch.dimension(1), 1); 40 VERIFY_IS_EQUAL(no_patch.dimension(2), 1); 41 VERIFY_IS_EQUAL(no_patch.dimension(3), 1); 42 VERIFY_IS_EQUAL(no_patch.dimension(4), 1) [all...] |
cxx11_tensor_volume_patch.cpp | 15 VERIFY_IS_EQUAL(single_voxel_patch.dimension(0), 4); 16 VERIFY_IS_EQUAL(single_voxel_patch.dimension(1), 1); 17 VERIFY_IS_EQUAL(single_voxel_patch.dimension(2), 1); 18 VERIFY_IS_EQUAL(single_voxel_patch.dimension(3), 1); 19 VERIFY_IS_EQUAL(single_voxel_patch.dimension(4), 2 * 3 * 5); 20 VERIFY_IS_EQUAL(single_voxel_patch.dimension(5), 7); 24 VERIFY_IS_EQUAL(single_voxel_patch_row_major.dimension(0), 7); 25 VERIFY_IS_EQUAL(single_voxel_patch_row_major.dimension(1), 2 * 3 * 5); 26 VERIFY_IS_EQUAL(single_voxel_patch_row_major.dimension(2), 1); 27 VERIFY_IS_EQUAL(single_voxel_patch_row_major.dimension(3), 1) [all...] |
cxx11_tensor_image_patch.cpp | 21 VERIFY_IS_EQUAL(tensor.dimension(0), tensor_row_major.dimension(3)); 22 VERIFY_IS_EQUAL(tensor.dimension(1), tensor_row_major.dimension(2)); 23 VERIFY_IS_EQUAL(tensor.dimension(2), tensor_row_major.dimension(1)); 24 VERIFY_IS_EQUAL(tensor.dimension(3), tensor_row_major.dimension(0)); 29 VERIFY_IS_EQUAL(single_pixel_patch.dimension(0), 2); 30 VERIFY_IS_EQUAL(single_pixel_patch.dimension(1), 1) [all...] |
cxx11_tensor_inflation.cpp | 31 VERIFY_IS_EQUAL(no_stride.dimension(0), 2); 32 VERIFY_IS_EQUAL(no_stride.dimension(1), 3); 33 VERIFY_IS_EQUAL(no_stride.dimension(2), 5); 34 VERIFY_IS_EQUAL(no_stride.dimension(3), 7); 53 VERIFY_IS_EQUAL(inflated.dimension(0), 3); 54 VERIFY_IS_EQUAL(inflated.dimension(1), 9); 55 VERIFY_IS_EQUAL(inflated.dimension(2), 9); 56 VERIFY_IS_EQUAL(inflated.dimension(3), 19);
|
cxx11_tensor_shuffling.cpp | 31 VERIFY_IS_EQUAL(no_shuffle.dimension(0), 2); 32 VERIFY_IS_EQUAL(no_shuffle.dimension(1), 3); 33 VERIFY_IS_EQUAL(no_shuffle.dimension(2), 5); 34 VERIFY_IS_EQUAL(no_shuffle.dimension(3), 7); 53 VERIFY_IS_EQUAL(shuffle.dimension(0), 5); 54 VERIFY_IS_EQUAL(shuffle.dimension(1), 7); 55 VERIFY_IS_EQUAL(shuffle.dimension(2), 3); 56 VERIFY_IS_EQUAL(shuffle.dimension(3), 2); 98 VERIFY_IS_EQUAL(result.dimension(0), 5); 99 VERIFY_IS_EQUAL(result.dimension(1), 7) [all...] |
cxx11_tensor_reverse.cpp | 33 VERIFY_IS_EQUAL(reversed_tensor.dimension(0), 2); 34 VERIFY_IS_EQUAL(reversed_tensor.dimension(1), 3); 35 VERIFY_IS_EQUAL(reversed_tensor.dimension(2), 5); 36 VERIFY_IS_EQUAL(reversed_tensor.dimension(3), 7); 55 VERIFY_IS_EQUAL(reversed_tensor.dimension(0), 2); 56 VERIFY_IS_EQUAL(reversed_tensor.dimension(1), 3); 57 VERIFY_IS_EQUAL(reversed_tensor.dimension(2), 5); 58 VERIFY_IS_EQUAL(reversed_tensor.dimension(3), 7); 78 VERIFY_IS_EQUAL(reversed_tensor.dimension(0), 2); 79 VERIFY_IS_EQUAL(reversed_tensor.dimension(1), 3) [all...] |
cxx11_tensor_custom_op.cpp | 20 result[0] = input.dimension(0) * 2; 21 result[1] = input.dimension(1) * 2; 34 Eigen::DSizes<DenseIndex, 2> extents(output.dimension(0)-1, output.dimension(1)-1); 45 VERIFY_IS_EQUAL(result.dimension(0), 6); 46 VERIFY_IS_EQUAL(result.dimension(1), 10); 64 result[0] = input1.dimension(0); 65 result[1] = input2.dimension(1); 66 result[2] = input2.dimension(2); 77 for (int i = 0; i < output.dimension(2); ++i) [all...] |
cxx11_tensor_broadcasting.cpp | 30 VERIFY_IS_EQUAL(no_broadcast.dimension(0), 2); 31 VERIFY_IS_EQUAL(no_broadcast.dimension(1), 3); 32 VERIFY_IS_EQUAL(no_broadcast.dimension(2), 5); 33 VERIFY_IS_EQUAL(no_broadcast.dimension(3), 7); 52 VERIFY_IS_EQUAL(broadcast.dimension(0), 4); 53 VERIFY_IS_EQUAL(broadcast.dimension(1), 9); 54 VERIFY_IS_EQUAL(broadcast.dimension(2), 5); 55 VERIFY_IS_EQUAL(broadcast.dimension(3), 28); 82 VERIFY_IS_EQUAL(broadcast.dimension(0), 16); 83 VERIFY_IS_EQUAL(broadcast.dimension(1), 9) [all...] |
cxx11_tensor_ifft.cpp | 31 VERIFY_IS_EQUAL(tensor_after_fft.dimension(0), sequence_length); 32 VERIFY_IS_EQUAL(tensor_after_fft_ifft.dimension(0), sequence_length); 54 VERIFY_IS_EQUAL(tensor_after_fft.dimension(0), dim0); 55 VERIFY_IS_EQUAL(tensor_after_fft.dimension(1), dim1); 56 VERIFY_IS_EQUAL(tensor_after_fft_ifft.dimension(0), dim0); 57 VERIFY_IS_EQUAL(tensor_after_fft_ifft.dimension(1), dim1); 83 VERIFY_IS_EQUAL(tensor_after_fft.dimension(0), dim0); 84 VERIFY_IS_EQUAL(tensor_after_fft.dimension(1), dim1); 85 VERIFY_IS_EQUAL(tensor_after_fft.dimension(2), dim2); 86 VERIFY_IS_EQUAL(tensor_after_fft_ifft.dimension(0), dim0) [all...] |
cxx11_tensor_map.cpp | 52 VERIFY_IS_EQUAL(vec1.dimension(0), 6); 93 VERIFY_IS_EQUAL(mat3.dimension(0), 2); 94 VERIFY_IS_EQUAL(mat3.dimension(1), 3); 98 VERIFY_IS_EQUAL(mat4.dimension(0), 2); 99 VERIFY_IS_EQUAL(mat4.dimension(1), 3); 137 VERIFY_IS_EQUAL(mat3.dimension(0), 2); 138 VERIFY_IS_EQUAL(mat3.dimension(1), 3); 139 VERIFY_IS_EQUAL(mat3.dimension(2), 7); 143 VERIFY_IS_EQUAL(mat4.dimension(0), 2); 144 VERIFY_IS_EQUAL(mat4.dimension(1), 3) [all...] |
cxx11_tensor_striding.cpp | 30 VERIFY_IS_EQUAL(no_stride.dimension(0), 2); 31 VERIFY_IS_EQUAL(no_stride.dimension(1), 3); 32 VERIFY_IS_EQUAL(no_stride.dimension(2), 5); 33 VERIFY_IS_EQUAL(no_stride.dimension(3), 7); 52 VERIFY_IS_EQUAL(stride.dimension(0), 1); 53 VERIFY_IS_EQUAL(stride.dimension(1), 1); 54 VERIFY_IS_EQUAL(stride.dimension(2), 3); 55 VERIFY_IS_EQUAL(stride.dimension(3), 3);
|
/external/webrtc/webrtc/modules/audio_processing/vad/ |
gmm.cc | 24 int dimension, 26 for (int n = 0; n < dimension; ++n) 32 int dimension) { 34 for (int i = 0; i < dimension; ++i) { 36 for (int j = 0; j < dimension; j++) 45 if (gmm_parameters.dimension > kMaxDimension) { 54 RemoveMean(x, mean_vec, gmm_parameters.dimension, v); 55 double q = ComputeExponent(v, covar_inv, gmm_parameters.dimension) + 58 mean_vec += gmm_parameters.dimension; 59 covar_inv += gmm_parameters.dimension * gmm_parameters.dimension [all...] |
gmm.h | 23 // weight[n] = log(w[n]) - |dimension|/2 * log(2*pi) - 1/2 * log(det(cov[n])); 26 // pointer to the first element of a |num_mixtures|x|dimension| matrix 29 // pointer to the first element of a |num_mixtures|x|dimension|x|dimension| 34 int dimension; member in struct:webrtc::GmmParameters 41 // acceptable dimension by the following function -1 is returned.
|
/packages/apps/Gallery2/jni/filters/ |
kmeans.h | 26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { 29 for (x = 0; x < dimension; x++) { 33 for (y = 0; y < dimension; y++) { 40 inline void set(T val1[], N val2[], int dimension) { 42 for (x = 0; x < dimension; x++) { 48 inline void add(T val[], N dst[], int dimension) { 50 for (x = 0; x < dimension; x++) { 56 inline void divide(T dst[], N divisor, int dimension) { 61 for (x = 0; x < dimension; x++) { 71 inline N euclideanDist(T val1[], T val2[], int dimension) { [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
MultidimensionalCounter.java | 49 private final int dimension; field in class:MultidimensionalCounter 51 * Offset for each dimension. 63 * Index of last dimension. 74 private final int[] counter = new int[dimension]; 92 for (int i = 0; i < dimension; i++) { 131 return /* Arrays.*/ copyOf(counter, dimension); // Java 1.5 does not support Arrays.copyOf() 135 * Get the current count in the selected dimension. 137 * @param dim Dimension index. 160 * @param size Counter sizes (number of slots in each dimension). 165 dimension = size.length [all...] |
/external/skia/src/core/ |
SkColorLookUpTable.h | 40 int gridPoints(int dimension) const { 41 SkASSERT(dimension >= 0 && dimension < inputChannels()); 42 return fGridPoints[dimension]; 56 // recursively LERPs one dimension at a time. Used by interp() for the general case
|
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
TJScalingFactor.java | 63 * Returns the scaled value of <code>dimension</code>. This function 65 * <code>ceil(dimension * scalingFactor)</code>. 67 * @return the scaled value of <code>dimension</code>. 69 public int getScaled(int dimension) { 70 return (dimension * num + denom - 1) / denom;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
HeaderCell.java | 61 void onBind(SortDimension dimension) { 62 setVisibility(dimension.getVisibility()); 64 if (dimension.getVisibility() == View.VISIBLE) { 66 label.setText(dimension.getLabelId()); 67 switch (dimension.getDataType()) { 76 "Unknown column data type: " + dimension.getDataType() + "."); 79 if (mCurDirection != dimension.getSortDirection()) { 81 switch (dimension.getSortDirection()) { 95 "Unknown sort direction: " + dimension.getSortDirection() + "."); 98 mCurDirection = dimension.getSortDirection() [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/moment/ |
VectorialCovariance.java | 49 * @param dimension vectors dimension 53 public VectorialCovariance(int dimension, boolean isBiasCorrected) { 54 sums = new double[dimension]; 55 productsSums = new double[dimension * (dimension + 1) / 2]; 63 * @exception DimensionMismatchException if the vector does not have the right dimension 85 int dimension = sums.length; local 86 RealMatrix result = MatrixUtils.createRealMatrix(dimension, dimension); [all...] |