Searched refs:sum (Results 276 - 300 of 660) sorted by relevance

<<11121314151617181920>>

/external/deqp/modules/glshared/
H A DglsStateChangePerfTestCases.cpp69 deUint64 sum = 0; local
72 sum += values[i];
74 result.mean = ((double)sum) / values.size();
168 double sum = 0.0; local
173 sum += (value - avg) * (value - avg);
176 return sum / values.size();
679 deUint64 sum = 0; local
682 sum += values[valueNdx];
684 return ((double)sum) / values.size();
/external/toybox/toys/pending/
H A Dtraceroute.c90 u_int32_t sum = 0; local
93 while (nwords-- != 0) sum += *p++;
101 sum += u.w;
104 sum = (sum >> 16) + (sum & 0xffff);
105 sum += (sum >> 16);
106 return (~sum);
/external/v8/src/
H A Dbignum.cc175 Chunk sum = bigits_[bigit_pos] + other.bigits_[i] + carry; local
176 bigits_[bigit_pos] = sum & kBigitMask;
177 carry = sum >> kBigitSize;
182 Chunk sum = bigits_[bigit_pos] + carry; local
183 bigits_[bigit_pos] = sum & kBigitMask;
184 carry = sum >> kBigitSize;
337 // sum up used_digits of Bigit*Bigit.
350 // The sum of the two indices must be equal to i.
367 // Invariant: sum of both indices is again equal to i.
637 Chunk sum
[all...]
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/
H A DSummaryStatistics.java70 /** sum of values that have been added */
71 protected Sum sum = new Sum(); field in class:SummaryStatistics
73 /** sum of the square of each value that has been added */
95 private StorelessUnivariateStatistic sumImpl = sum;
177 * Returns the sum of the values that have been added
178 * @return The sum or <code>Double.NaN</code> if no values have been added
185 * Returns the sum of the squares of the values that have been added.
189 * @return The sum of squares
278 * Returns the sum of the logs of the values that have been added.
282 * @return the sum o
[all...]
/external/deqp/framework/common/
H A DtcuFuzzyImageCompare.cpp176 Vec4 sum(0);
183 sum += toFloatVec(p)*f;
186 writeUnorm8<DstChannels>(tmpAccess, j, i, toColor(sum));
195 Vec4 sum(0.0f);
202 sum += toFloatVec(p)*f;
205 writeUnorm8<DstChannels>(dst, i, j, toColor(sum));
339 // Scale error sum based on number of samples taken
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_test_conv.c294 double sum = 0.0, sum2 = 0.0; local
299 sum += cycles[i];
303 avg = sum/n;
307 sum = 0.0;
310 sum += cycles[i];
315 cycles_avg = sum/m;
/external/opencv/cv/src/
H A Dcvhaar.cpp107 CvMat sum, sqsum, tilted; member in struct:CvHidHaarClassifierCascade
417 #define sum_elem_ptr(sum,row,col) \
418 ((sumtype*)CV_MAT_ELEM_PTR_FAST((sum),(row),(col),sizeof(sumtype)))
438 CvMat sum_stub, *sum = (CvMat*)_sum; local
453 CV_CALL( sum = cvGetMat( sum, &sum_stub, &coi0 ));
459 if( !CV_ARE_SIZES_EQ( sum, sqsum ))
463 CV_MAT_TYPE(sum->type) != CV_32SC1 )
465 "Only (32s, 64f, 32s) combination of (sum,sqsum,tilted_sum) formats is allowed" );
478 "Only (32s, 64f, 32s) combination of (sum,sqsu
675 double sum = calc_sum(node->feature.rect[0],p_offset) * node->feature.rect[0].weight; local
772 double sum, t = node->threshold*variance_norm_factor, a, b; local
788 double sum, t = node->threshold*variance_norm_factor, a, b; local
864 CvMat *temp = 0, *sum = 0, *tilted = 0, *sqsum = 0, *norm_img = 0, *sumcanny = 0, *img_small = 0; local
[all...]
/external/ceres-solver/include/ceres/internal/
H A Dnumeric_diff.h129 (step_size.sum() == 0)
131 : step_size.sum() / step_size.rows();
/external/eigen/test/
H A Deigensolver_complex.cpp28 VERIFY_IS_APPROX(vec1.array().pow(RealScalar(k)).sum(), vec2.array().pow(RealScalar(k)).sum());
/external/elfutils/src/lib/
H A Dmd5.c140 size_t sum; local
152 sum = 0;
157 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream);
159 sum += n;
161 while (sum < BLOCKSIZE && n != 0);
176 if (sum > 0)
177 md5_process_bytes (buffer, sum, &ctx);
/external/libvncserver/common/
H A Dmd5.c142 size_t sum; local
154 sum = 0;
159 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream);
161 sum += n;
163 while (sum < BLOCKSIZE && n != 0);
178 if (sum > 0)
179 md5_process_bytes (buffer, sum, &ctx);
/external/lldb/test/pexpect-2.4/examples/
H A Dtopip.py77 total = sum(r)
79 sdsq = sum([(i-avg)**2 for i in r])
/external/v8/test/mjsunit/harmony/
H A Dproxies-function.js336 this.sum = x + y;
342 this.sum = x + y;
349 return {sum: x + y};
356 result.sum = x + y;
369 assertEquals(42, o.sum)
375 assertEquals(43, o.sum)
403 assertEquals(42, o.sum)
410 assertEquals(43, o.sum)
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
H A DBlockFieldMatrix.java370 * Compute the sum of this and <code>m</code>.
550 T sum = zero;
553 sum = sum.add(tBlock[l].multiply(m.getEntry(r, q)));
556 outBlock[k] = outBlock[k].add(sum);
615 T sum = zero;
619 sum = sum.
628 sum = sum
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Misc/
H A DStats.cs109 public static int sum(int[] X) { method in class:Antlr.Runtime.Misc.Stats
/external/e2fsprogs/lib/ext2fs/
H A Ddirhash.c35 __u32 sum = 0; local
41 sum += DELTA;
42 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b);
43 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d);
/external/eigen/Eigen/src/Eigen2Support/
H A DLeastSquares.h164 result->offset() = - (result->normal().cwise()* mean).sum();
/external/eigen/unsupported/test/
H A Dmpreal_support.cpp30 VERIFY(Eigen::internal::isApprox(A.array().abs2().sum(), A.squaredNorm()));
/external/f2fs-tools/lib/
H A Dlibf2fs.c222 __u32 sum = 0; local
228 sum += DELTA;
229 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b);
230 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d);
/external/libvpx/libvpx/test/
H A Dintrapred_test.cc99 int sum = 0, shift = BlockSizeLog2Min1() + mbptr_->up_available + local
103 sum += data_ptr_[p][x - stride_];
106 sum += data_ptr_[p][y * stride_ - 1];
107 expected = (sum + (1 << (shift - 1))) >> shift;
/external/libvpx/libvpx/vp9/common/mips/dspr2/
H A Dvp9_convolve2_dspr2.c723 int sum = 0; local
725 sum += src[x] * filter[3];
726 sum += src[x + 1] * filter[4];
728 dst[x * dst_stride] = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS));
/external/libvpx/libvpx/vp9/encoder/x86/
H A Dvp9_dct_sse2.c414 __m128i u0, u1, sum; local
424 sum = _mm_add_epi16(u0, u1);
428 sum = _mm_add_epi16(sum, in0);
431 sum = _mm_add_epi16(sum, in2);
433 in0 = _mm_unpacklo_epi16(u0, sum);
434 in1 = _mm_unpackhi_epi16(u0, sum);
438 sum = _mm_add_epi32(in0, in1);
439 in0 = _mm_unpacklo_epi32(sum, u
1243 __m128i sum = _mm_setzero_si128(); local
2823 __m128i sum = _mm_setzero_si128(); local
[all...]
/external/mesa3d/src/mesa/main/
H A Dimports.c563 unsigned int sum, i; local
565 sum = i = 1;
567 sum += *c * (i % 100);
568 return sum + i;
/external/openfst/src/include/fst/
H A Dshortest-distance.h319 // Return the sum of the weight of all successful paths in an FST, i.e.,
331 Weight sum = Weight::Zero();
333 sum = Plus(sum, Times(distance[s], fst.Final(s)));
334 return sum;
/external/zlib/src/
H A Dcrc32.c331 unsigned long sum; local
333 sum = 0;
336 sum ^= *mat;
340 return sum;

Completed in 2914 milliseconds

<<11121314151617181920>>