Home
last modified time | relevance | path

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

12345678910>>...41

/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.c517 static inline UChar getUChar ( Long delta ) in getUChar() argument
519 UChar v = guest_code[delta+0]; in getUChar()
523 static UInt getUDisp16 ( Long delta ) in getUDisp16() argument
525 UInt v = guest_code[delta+1]; v <<= 8; in getUDisp16()
526 v |= guest_code[delta+0]; in getUDisp16()
544 static Long getSDisp8 ( Long delta ) in getSDisp8() argument
546 return extend_s_8to64( guest_code[delta] ); in getSDisp8()
551 static Long getSDisp16 ( Long delta ) in getSDisp16() argument
553 UInt v = guest_code[delta+1]; v <<= 8; in getSDisp16()
554 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/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/pdfium/core/src/fxge/agg/agg23/
Dfx_agg_rasterizer_scanline_aa.cpp169 int delta, p, first, dx; in render_hline() local
176 delta = y2 - y1; in render_hline()
177 m_cur_cell.add_cover(delta, (fx1 + fx2) * delta); in render_hline()
190 delta = p / dx; in render_hline()
193 delta--; in render_hline()
196 m_cur_cell.add_cover(delta, (fx1 + first) * delta); in render_hline()
199 y1 += delta; in render_hline()
201 p = poly_base_size * (y2 - y1 + delta); in render_hline()
210 delta = lift; in render_hline()
214 delta++; in render_hline()
[all …]
/external/lzma/C/
DDelta.c20 void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size) in Delta_Encode() argument
24 MyMemCpy(buf, state, delta); in Delta_Encode()
29 for (j = 0; j < delta && i < size; i++, j++) in Delta_Encode()
37 if (j == delta) in Delta_Encode()
39 MyMemCpy(state, buf + j, delta - j); in Delta_Encode()
40 MyMemCpy(state + delta - j, buf, j); in Delta_Encode()
43 void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size) in Delta_Decode() argument
47 MyMemCpy(buf, state, delta); in Delta_Decode()
52 for (j = 0; j < delta && i < size; i++, j++) in Delta_Decode()
58 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.h148 explicit TimeDelta(int64_t delta) : delta_(delta) {} in TimeDelta() argument
239 Time& operator+=(const TimeDelta& delta) {
240 us_ += delta.InMicroseconds();
243 Time& operator-=(const TimeDelta& delta) {
244 us_ -= delta.InMicroseconds();
249 Time operator+(const TimeDelta& delta) const {
250 return Time(us_ + delta.InMicroseconds());
252 Time operator-(const TimeDelta& delta) const {
253 return Time(us_ - delta.InMicroseconds());
283 inline Time operator+(const TimeDelta& delta, const Time& time) {
[all …]
/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/webrtc/src/common_audio/vad/
Dvad_unittest.cc164 int16_t delta = 0; in TEST_F() local
166 EXPECT_EQ(1048576, WebRtcVad_GaussianProbability(0, 0, 128, &delta)); in TEST_F()
167 EXPECT_EQ(0, delta); in TEST_F()
168 EXPECT_EQ(1048576, WebRtcVad_GaussianProbability(16, 128, 128, &delta)); in TEST_F()
169 EXPECT_EQ(0, delta); in TEST_F()
170 EXPECT_EQ(1048576, WebRtcVad_GaussianProbability(-16, -128, 128, &delta)); in TEST_F()
171 EXPECT_EQ(0, delta); in TEST_F()
174 EXPECT_EQ(1024, WebRtcVad_GaussianProbability(59, 0, 128, &delta)); in TEST_F()
175 EXPECT_EQ(7552, delta); in TEST_F()
176 EXPECT_EQ(1024, WebRtcVad_GaussianProbability(75, 128, 128, &delta)); in TEST_F()
[all …]
/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/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/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/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/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/lzma/CPP/Common/
DDynamicBuffer.h12 size_t delta; in GrowLength() local
14 delta = this->_capacity / 4; in GrowLength()
16 delta = 16; in GrowLength()
18 delta = 4; in GrowLength()
19 delta = MyMax(delta, size); in GrowLength()
20 size_t newCap = this->_capacity + delta; in GrowLength()
21 if (newCap < delta) in GrowLength()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPunycode.java41 private static int adaptBias(int delta, int length, boolean firstTime){ in adaptBias() argument
43 delta /=DAMP; in adaptBias()
45 delta /= 2; in adaptBias()
47 delta += delta/length; in adaptBias()
50 for(; delta>((BASE-TMIN)*TMAX)/2; count+=BASE) { in adaptBias()
51 delta/=(BASE-TMIN); in adaptBias()
54 return count+(((BASE-TMIN+1)*delta)/(delta+SKEW)); in adaptBias()
131 int n, delta, handledCPCount, basicLength, bias, j, m, q, k, t, srcCPCount; in encode() local
177 delta=0; in encode()
197 if(m-n>(0x7fffffff-delta)/(handledCPCount+1)) { in encode()
[all …]
/external/easymock/src/org/easymock/internal/matchers/
DEqualsWithDelta.java28 private final Number delta; field in EqualsWithDelta
30 public EqualsWithDelta(Number value, Number delta) { in EqualsWithDelta() argument
32 this.delta = delta; in EqualsWithDelta()
37 return expected.doubleValue() - delta.doubleValue() <= actualNumber in matches()
40 + delta.doubleValue(); in matches()
44 buffer.append("eq(" + expected + ", " + delta + ")"); in appendTo()
/external/libunwind/tests/
DGperf-trace.c139 double stop, start, get_cold, get_warm, init_cold, init_warm, delta; in measure_init() local
168 delta = (stop - start) / N; in measure_init()
169 if (delta < get_cold) in measure_init()
170 get_cold = delta; in measure_init()
183 delta = (stop - start) / N; in measure_init()
184 if (delta < init_cold) in measure_init()
185 init_cold = delta; in measure_init()
195 delta = (stop - start) / N; in measure_init()
196 if (delta < get_warm) in measure_init()
197 get_warm = delta; in measure_init()
[all …]

12345678910>>...41