Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 1250) sorted by relevance

12345678910>>...50

/external/ceres-solver/internal/ceres/
Dlocal_parameterization_test.cc48 double delta[3] = {0.0, 1.0, 2.0}; in TEST() local
50 parameterization.Plus(x, delta, x_plus_delta); in TEST()
93 double delta[3] = {1.0, 2.0, 3.0}; in TEST() local
96 parameterization.Plus(x, delta, x_plus_delta); in TEST()
102 EXPECT_EQ(x_plus_delta[j], x[j] + delta[k++]); in TEST()
129 bool operator()(const T* x, const T* delta, T* x_plus_delta) const { in operator ()()
131 delta[0] * delta[0] + delta[1] * delta[1] + delta[2] * delta[2]; in operator ()()
138 q_delta[1] = sin_delta_by_delta * delta[0]; in operator ()()
139 q_delta[2] = sin_delta_by_delta * delta[1]; in operator ()()
140 q_delta[3] = sin_delta_by_delta * delta[2]; in operator ()()
[all …]
Dautodiff_local_parameterization_test.cc43 bool operator()(const T* x, const T* delta, T* x_plus_delta) const { in operator ()()
45 x_plus_delta[i] = x[i] + delta[i]; in operator ()()
56 double delta[3] = {0.0, 1.0, 2.0}; in TEST() local
58 parameterization.Plus(x, delta, x_plus_delta); in TEST()
80 bool operator()(const T* x, const T* delta, T* x_plus_delta) const { in operator ()()
82 x_plus_delta[i] = x[i] + T(scale_factor_) * delta[i]; in operator ()()
97 double delta[3] = {0.0, 1.0, 2.0}; in TEST() local
99 parameterization.Plus(x, delta, x_plus_delta); in TEST()
117 bool operator()(const T* x, const T* delta, T* x_plus_delta) const { in operator ()()
119 delta[0] * delta[0] + delta[1] * delta[1] + delta[2] * delta[2]; in operator ()()
[all …]
Dlocal_parameterization.cc45 const double* delta, in Plus() argument
48 ConstVectorRef(x, size_) + ConstVectorRef(delta, size_); in Plus()
87 const double* delta, in Plus() argument
93 x_plus_delta[i] = x[i] + delta[j++]; in Plus()
112 const double* delta, in Plus() argument
115 sqrt(delta[0] * delta[0] + delta[1] * delta[1] + delta[2] * delta[2]); in Plus()
120 q_delta[1] = sin_delta_by_delta * delta[0]; in Plus()
121 q_delta[2] = sin_delta_by_delta * delta[1]; in Plus()
122 q_delta[3] = sin_delta_by_delta * delta[2]; in Plus()
/external/valgrind/VEX/priv/
Dguest_amd64_toIR.c524 static inline UChar getUChar ( Long delta ) in getUChar() argument
526 UChar v = guest_code[delta+0]; in getUChar()
530 static UInt getUDisp16 ( Long delta ) in getUDisp16() argument
532 UInt v = guest_code[delta+1]; v <<= 8; in getUDisp16()
533 v |= guest_code[delta+0]; in getUDisp16()
551 static Long getSDisp8 ( Long delta ) in getSDisp8() argument
553 return extend_s_8to64( guest_code[delta] ); in getSDisp8()
558 static Long getSDisp16 ( Long delta ) in getSDisp16() argument
560 UInt v = guest_code[delta+1]; v <<= 8; in getSDisp16()
561 v |= guest_code[delta+0]; in getSDisp16()
[all …]
Dguest_x86_toIR.c338 static UChar getIByte ( Int delta ) in getIByte() argument
340 return guest_code[delta]; in getIByte()
365 static UChar getUChar ( Int delta ) in getUChar() argument
367 UChar v = guest_code[delta+0]; in getUChar()
371 static UInt getUDisp16 ( Int delta ) in getUDisp16() argument
373 UInt v = guest_code[delta+1]; v <<= 8; in getUDisp16()
374 v |= guest_code[delta+0]; in getUDisp16()
378 static UInt getUDisp32 ( Int delta ) in getUDisp32() argument
380 UInt v = guest_code[delta+3]; v <<= 8; in getUDisp32()
381 v |= guest_code[delta+2]; v <<= 8; in getUDisp32()
[all …]
/external/webrtc/webrtc/common_audio/vad/
Dvad_gmm_unittest.cc22 int16_t delta = 0; in TEST_F() local
24 EXPECT_EQ(1048576, WebRtcVad_GaussianProbability(0, 0, 128, &delta)); in TEST_F()
25 EXPECT_EQ(0, delta); in TEST_F()
26 EXPECT_EQ(1048576, WebRtcVad_GaussianProbability(16, 128, 128, &delta)); in TEST_F()
27 EXPECT_EQ(0, delta); in TEST_F()
28 EXPECT_EQ(1048576, WebRtcVad_GaussianProbability(-16, -128, 128, &delta)); in TEST_F()
29 EXPECT_EQ(0, delta); in TEST_F()
32 EXPECT_EQ(1024, WebRtcVad_GaussianProbability(59, 0, 128, &delta)); in TEST_F()
33 EXPECT_EQ(7552, delta); in TEST_F()
34 EXPECT_EQ(1024, WebRtcVad_GaussianProbability(75, 128, 128, &delta)); in TEST_F()
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/warp/
Dshuffle.hpp152 __device__ __forceinline__ uchar shfl_up(uchar val, uint delta, int width = warpSize) in CV_CUDEV_SHFL_VEC_INST()
154 return (uchar) __shfl_up((int) val, delta, width); in CV_CUDEV_SHFL_VEC_INST()
157 __device__ __forceinline__ schar shfl_up(schar val, uint delta, int width = warpSize) in shfl_up() argument
159 return (schar) __shfl_up((int) val, delta, width); in shfl_up()
162 __device__ __forceinline__ ushort shfl_up(ushort val, uint delta, int width = warpSize) in shfl_up() argument
164 return (ushort) __shfl_up((int) val, delta, width); in shfl_up()
167 __device__ __forceinline__ short shfl_up(short val, uint delta, int width = warpSize) in shfl_up() argument
169 return (short) __shfl_up((int) val, delta, width); in shfl_up()
172 __device__ __forceinline__ int shfl_up(int val, uint delta, int width = warpSize) in shfl_up() argument
174 return __shfl_up(val, delta, width); in shfl_up()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_eu_util.c65 GLuint delta = i*32; in brw_copy4() local
66 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy4()
67 brw_MOV(p, byte_offset(dst, delta+16), byte_offset(src, delta+16)); in brw_copy4()
84 GLuint delta = i*32; in brw_copy8() local
85 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy8()
99 GLuint delta = i*32; in brw_copy_indirect_to_indirect() local
100 brw_MOV(p, deref_4f(dst_ptr, delta), deref_4f(src_ptr, delta)); in brw_copy_indirect_to_indirect()
101 brw_MOV(p, deref_4f(dst_ptr, delta+16), deref_4f(src_ptr, delta+16)); in brw_copy_indirect_to_indirect()
117 GLuint delta = i*32; in brw_copy_from_indirect() local
118 brw_MOV(p, byte_offset(dst, delta), deref_4f(ptr, delta)); in brw_copy_from_indirect()
[all …]
/external/regex-re2/re2/
Dmake_unicode_casefold.py45 def _AddDelta(a, delta): argument
47 if type(delta) == int:
48 return a+delta
49 if delta == 'EvenOdd':
54 if delta == 'OddEven':
59 print >>sys.stderr, "Bad Delta: ", delta
77 delta = r[2]
78 d = delta
79 if type(delta) is not str:
81 if delta.endswith('Skip'):
[all …]
/external/opencv3/modules/core/include/opencv2/core/cuda/
Dwarp_shuffle.hpp87 __device__ __forceinline__ T shfl_down(T val, unsigned int delta, int width = warpSize) in shfl_down() argument
90 return __shfl_down(val, delta, width); in shfl_down()
95 …__device__ __forceinline__ unsigned int shfl_down(unsigned int val, unsigned int delta, int width … in shfl_down() argument
98 return (unsigned int) __shfl_down((int) val, delta, width); in shfl_down()
103 … __device__ __forceinline__ double shfl_down(double val, unsigned int delta, int width = warpSize) in shfl_down() argument
109 lo = __shfl_down(lo, delta, width); in shfl_down()
110 hi = __shfl_down(hi, delta, width); in shfl_down()
119 __device__ __forceinline__ T shfl_up(T val, unsigned int delta, int width = warpSize) in shfl_up() argument
122 return __shfl_up(val, delta, width); in shfl_up()
127 …__device__ __forceinline__ unsigned int shfl_up(unsigned int val, unsigned int delta, int width = … in shfl_up() argument
[all …]
/external/pdfium/third_party/agg23/
Dagg_rasterizer_scanline_aa.cpp168 int delta, p, first, dx; in render_hline() local
175 delta = y2 - y1; in render_hline()
176 m_cur_cell.add_cover(delta, (fx1 + fx2) * delta); in render_hline()
189 delta = p / dx; in render_hline()
192 delta--; in render_hline()
195 m_cur_cell.add_cover(delta, (fx1 + first) * delta); in render_hline()
198 y1 += delta; in render_hline()
200 p = poly_base_size * (y2 - y1 + delta); in render_hline()
209 delta = lift; in render_hline()
213 delta++; in render_hline()
[all …]
/external/lzma/C/
DDelta.c22 void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size) in Delta_Encode() argument
26 MyMemCpy(buf, state, delta); in Delta_Encode()
31 for (j = 0; j < delta && i < size; i++, j++) in Delta_Encode()
39 if (j == delta) in Delta_Encode()
41 MyMemCpy(state, buf + j, delta - j); in Delta_Encode()
42 MyMemCpy(state + delta - j, buf, j); in Delta_Encode()
45 void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size) in Delta_Decode() argument
49 MyMemCpy(buf, state, delta); in Delta_Decode()
54 for (j = 0; j < delta && i < size; i++, j++) in Delta_Decode()
60 if (j == delta) in Delta_Decode()
[all …]
/external/icu/icu4c/source/test/intltest/
Dpunyref.c109 punycode_uint delta, punycode_uint numpoints, int firsttime ) in adapt() argument
113 delta = firsttime ? delta / damp : delta >> 1; in adapt()
115 delta += delta / numpoints; in adapt()
117 for (k = 0; delta > ((base - tmin) * tmax) / 2; k += base) { in adapt()
118 delta /= base - tmin; in adapt()
121 return k + (base - tmin + 1) * delta / (delta + skew); in adapt()
133 punycode_uint n, delta, h, b, out, max_out, bias, j, m, q, k, t; in punycode_encode() local
138 delta = out = 0; in punycode_encode()
177 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in punycode_encode()
178 delta += (m - n) * (h + 1); in punycode_encode()
[all …]
/external/skia/samplecode/
DSampleDegenerateTwoPtRadials.cpp15 static void draw_gradient2(SkCanvas* canvas, const SkRect& rect, SkScalar delta) { in draw_gradient2() argument
26 SkPoint c0 = { l + 2 * w / 5 + delta, t + h / 2 }; in draw_gradient2()
57 SkScalar delta = fTime / 15.f; in onDrawContent() local
58 int intPart = SkScalarFloorToInt(delta); in onDrawContent()
59 delta = delta - SK_Scalar1 * intPart; in onDrawContent()
61 delta = SK_Scalar1 - delta; in onDrawContent()
63 delta -= SK_ScalarHalf; in onDrawContent()
65 delta /= DELTA_SCALE; in onDrawContent()
71 draw_gradient2(canvas, SkRect::MakeXYWH(l, t, w, h), delta); in onDrawContent()
73 txt.appendf("gap at \"tangent\" pt = %f", SkScalarToFloat(delta)); in onDrawContent()
[all …]
/external/v8/src/base/platform/
Dtime.h149 explicit TimeDelta(int64_t delta) : delta_(delta) {} in TimeDelta() argument
240 Time& operator+=(const TimeDelta& delta) {
241 us_ += delta.InMicroseconds();
244 Time& operator-=(const TimeDelta& delta) {
245 us_ -= delta.InMicroseconds();
250 Time operator+(const TimeDelta& delta) const {
251 return Time(us_ + delta.InMicroseconds());
253 Time operator-(const TimeDelta& delta) const {
254 return Time(us_ - delta.InMicroseconds());
286 inline Time operator+(const TimeDelta& delta, const Time& time) {
[all …]
/external/libvpx/libvpx/vp9/common/
Dvp9_quant_common.c229 int16_t vp9_dc_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { in vp9_dc_quant() argument
233 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
235 return dc_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
237 return dc_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
244 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
248 int16_t vp9_ac_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { in vp9_ac_quant() argument
252 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
254 return ac_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
256 return ac_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
263 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
/external/valgrind/none/tests/amd64/
Dbug132813-amd64.stdout.exp1 pushb_pos: delta 8, top64 0x0000000000000022
2 pushb_neg: delta 8, top64 0xffffffffffffffee
3 pushw_neg: delta 2, top64 0x0000555555553344
4 pushw_pos: delta 2, top64 0x000055555555ddcc
5 pushq_pos: delta 8, top64 0x0000000067675656
6 pushq_neg: delta 8, top64 0x0000000078988787
7 66pushb_pos: delta 2, top64 0x0000555555550022
8 66pushb_neg: delta 2, top64 0x000055555555ffee
/external/valgrind/none/tests/x86/
Dbug132813-x86.stdout.exp1 pushb_pos: delta 4, top32 0x00000022
2 pushb_neg: delta 4, top32 0xffffffee
3 pushw_neg: delta 2, top32 0x55553344
4 pushw_pos: delta 2, top32 0x5555ddcc
5 pushl_pos: delta 4, top32 0x67675656
6 pushl_neg: delta 4, top32 0x98988787
7 66pushb_pos: delta 2, top32 0x55550022
8 66pushb_neg: delta 2, top32 0x5555ffee
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/
Ddogleg.h10 Scalar delta, in dogleg() argument
48 if (qnorm <= delta) in dogleg()
66 alpha = delta / qnorm; in dogleg()
87 if (sgnorm >= delta) in dogleg()
94 temp = bnorm / gnorm * (bnorm / qnorm) * (sgnorm / delta); in dogleg()
95delta / qnorm * numext::abs2(sgnorm / delta) + sqrt(numext::abs2(temp - delta / qnorm) + (1.-numex… in dogleg()
96 alpha = delta / qnorm * (1. - numext::abs2(sgnorm / delta)) / temp; in dogleg()
101 temp = (1.-alpha) * (std::min)(sgnorm,delta); in dogleg()
/external/icu/icu4c/source/layout/
DGlyphPosnLookupProc.cpp71 le_uint32 delta = 0; in applySubtable() local
82 delta = subtable->process(subtable, glyphIterator, fontInstance, success); in applySubtable()
90 delta = subtable->process(subtable, glyphIterator, fontInstance, success); in applySubtable()
98 delta = subtable->process(subtable, glyphIterator, fontInstance, success); in applySubtable()
106 delta = subtable->process(subtable, glyphIterator, fontInstance, success); in applySubtable()
114 delta = subtable->process(subtable, glyphIterator, fontInstance, success); in applySubtable()
122 delta = subtable->process(subtable, glyphIterator, fontInstance, success); in applySubtable()
130 delta = subtable->process(this, glyphIterator, fontInstance, success); in applySubtable()
138 delta = subtable->process(this, glyphIterator, fontInstance, success); in applySubtable()
146delta = subtable->process(this, subtable, lookupType, glyphIterator, fontInstance, success); // G… in applySubtable()
[all …]
/external/pdfium/third_party/freetype/src/pshinter/
Dpshglob.c155 FT_Int reference, delta; in psh_blues_set_zones_0() local
166 delta = read[0] - reference; in psh_blues_set_zones_0()
175 delta = read[1] - reference; in psh_blues_set_zones_0()
196 if ( delta < 0 ) in psh_blues_set_zones_0()
198 if ( delta < delta0 ) in psh_blues_set_zones_0()
199 zone->org_delta = delta; in psh_blues_set_zones_0()
203 if ( delta > delta0 ) in psh_blues_set_zones_0()
204 zone->org_delta = delta; in psh_blues_set_zones_0()
214 zone->org_delta = delta; in psh_blues_set_zones_0()
279 FT_Int delta; in psh_blues_set_zones() local
[all …]
/external/freetype/src/pshinter/
Dpshglob.c155 FT_Int reference, delta; in psh_blues_set_zones_0() local
166 delta = read[0] - reference; in psh_blues_set_zones_0()
175 delta = read[1] - reference; in psh_blues_set_zones_0()
196 if ( delta < 0 ) in psh_blues_set_zones_0()
198 if ( delta < delta0 ) in psh_blues_set_zones_0()
199 zone->org_delta = delta; in psh_blues_set_zones_0()
203 if ( delta > delta0 ) in psh_blues_set_zones_0()
204 zone->org_delta = delta; in psh_blues_set_zones_0()
214 zone->org_delta = delta; in psh_blues_set_zones_0()
279 FT_Int delta; in psh_blues_set_zones() local
[all …]
/external/valgrind/massif/tests/
Dpages_as_heap.c9 int delta; in main() local
15 for (delta = 1; delta <= 400; delta+=399) { in main()
17 inc_dec, delta, sbrk(0)); in main()
19 brk_stat = (intptr_t)brk(sbrk(0) + inc_dec * delta); in main()
27 inc_dec, delta, sbrk(0)); in main()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
DPunycodeReference.java119 private static int adapt(int delta, int numpoints, boolean firsttime ){ in adapt() argument
122 delta = (firsttime==true) ? delta / damp : delta >> 1; in adapt()
124 delta += delta / numpoints; in adapt()
126 for (k = 0; delta > ((base - tmin) * tmax) / 2; k += base) { in adapt()
127 delta /= base - tmin; in adapt()
130 return k + (base - tmin + 1) * delta / (delta + skew); in adapt()
140 int delta, h, b, out, max_out, bias, j, q, k, t; in encode() local
145 delta = out = 0; in encode()
184 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in encode()
185 delta += (m - n) * (h + 1); in encode()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/
DPunycodeReference.java120 private static int adapt(int delta, int numpoints, boolean firsttime ){ in adapt() argument
123 delta = (firsttime==true) ? delta / damp : delta >> 1; in adapt()
125 delta += delta / numpoints; in adapt()
127 for (k = 0; delta > ((base - tmin) * tmax) / 2; k += base) { in adapt()
128 delta /= base - tmin; in adapt()
131 return k + (base - tmin + 1) * delta / (delta + skew); in adapt()
141 int delta, h, b, out, max_out, bias, j, q, k, t; in encode() local
146 delta = out = 0; in encode()
185 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in encode()
186 delta += (m - n) * (h + 1); in encode()
[all …]

12345678910>>...50