Home
last modified time | relevance | path

Searched refs:w1 (Results 1 – 25 of 122) sorted by relevance

12345

/external/openfst/src/test/
Dweight-tester.h42 Weight w1 = weight_generator_(); variable
47 VLOG(1) << "w1 = " << w1;
51 TestSemiring(w1, w2, w3);
53 TestDivision(w1, w2);
54 TestReverse(w1, w2);
55 TestEquality(w1, w2, w3);
56 TestIO(w1);
57 TestCopy(w1);
66 void TestSemiring(Weight w1, Weight w2, Weight w3) { in TestSemiring() argument
68 CHECK(Plus(w1, w2).Member()); in TestSemiring()
[all …]
/external/openfst/src/include/fst/
Dfloat-weight.h110 inline bool operator==(const FloatWeightTpl<T> &w1,
114 volatile T v1 = w1.Value();
119 inline bool operator==(const FloatWeightTpl<double> &w1,
121 return operator==<double>(w1, w2);
124 inline bool operator==(const FloatWeightTpl<float> &w1,
126 return operator==<float>(w1, w2);
130 inline bool operator!=(const FloatWeightTpl<T> &w1,
132 return !(w1 == w2);
135 inline bool operator!=(const FloatWeightTpl<double> &w1,
137 return operator!=<double>(w1, w2);
[all …]
Dstring-weight.h296 inline bool operator==(const StringWeight<L, S> &w1,
298 if (w1.Size() != w2.Size())
301 StringWeightIterator<L, S> iter1(w1);
312 inline bool operator!=(const StringWeight<L, S> &w1,
314 return !(w1 == w2);
318 inline bool ApproxEqual(const StringWeight<L, S> &w1,
321 return w1 == w2;
370 Plus(const StringWeight<L, S> &w1, in Plus() argument
372 if (!w1.Member() || !w2.Member()) in Plus()
374 if (w1 == StringWeight<L, S>::Zero()) in Plus()
[all …]
Dsigned-log-weight.h108 inline SignedLogWeightTpl<T> Plus(const SignedLogWeightTpl<T> &w1, in Plus() argument
110 if (!w1.Member() || !w2.Member()) in Plus()
112 bool s1 = w1.Value1().Value() > 0.0; in Plus()
114 T f1 = w1.Value2().Value(); in Plus()
119 return w1; in Plus()
122 return SignedLogWeightTpl<T>(w1.Value1(), (f2 - log(2.0F))); in Plus()
128 w1.Value1(), (f2 - log(1.0F + exp(f2 - f1)))); in Plus()
139 w1.Value1(), (f1 - log(1.0F - exp(f1 - f2)))); in Plus()
145 inline SignedLogWeightTpl<T> Minus(const SignedLogWeightTpl<T> &w1, in Minus() argument
148 return Plus(w1, minus_w2); in Minus()
[all …]
Dsparse-power-weight.h150 inline SparsePowerWeight<W, K> Plus(const SparsePowerWeight<W, K> &w1, in Plus() argument
154 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); in Plus()
160 inline SparsePowerWeight<W, K> Times(const SparsePowerWeight<W, K> &w1, in Times() argument
164 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); in Times()
170 inline SparsePowerWeight<W, K> Divide(const SparsePowerWeight<W, K> &w1,
175 SparseTupleWeightMap(&ret, w1, w2, operator_mapper);
181 inline const W& DotProduct(const SparsePowerWeight<W, K> &w1, in DotProduct() argument
183 const SparsePowerWeight<W, K>& product = Times(w1, w2); in DotProduct()
192 inline bool ApproxEqual(const SparsePowerWeight<W, K> &w1,
197 SparseTupleWeightMap(&ret, w1, w2, operator_mapper);
[all …]
Dpair-weight.h54 PairWeight(W1 w1, W2 w2) : value1_(w1), value2_(w2) {} in PairWeight() argument
132 W1 w1 = W1::Zero(); in ReadNoParen() local
133 strm1 >> w1; in ReadNoParen()
139 w = PairWeight<W1, W2>(w1, w2); in ReadNoParen()
181 W1 w1 = W1::Zero(); in ReadWithParen() local
182 strm1 >> w1; in ReadWithParen()
202 w = PairWeight<W1, W2>(w1, w2); in ReadWithParen()
219 inline bool operator!=(const PairWeight<W1, W2> &w1,
221 return w1.Value1() != w2.Value1() || w1.Value2() != w2.Value2();
226 inline bool ApproxEqual(const PairWeight<W1, W2> &w1,
[all …]
Dweight.h142 bool operator()(const W &w1, const W &w2) const { in operator()
143 return (Plus(w1, w2) == w1) && w1 != w2; in operator()
164 W2 operator()(W1 w1) const { in operator()
Dpower-weight.h99 inline PowerWeight<W, n> Plus(const PowerWeight<W, n> &w1, in Plus() argument
103 w.SetValue(i, Plus(w1.Value(i), w2.Value(i))); in Plus()
109 inline PowerWeight<W, n> Times(const PowerWeight<W, n> &w1, in Times() argument
113 w.SetValue(i, Times(w1.Value(i), w2.Value(i))); in Times()
119 inline PowerWeight<W, n> Divide(const PowerWeight<W, n> &w1,
124 w.SetValue(i, Divide(w1.Value(i), w2.Value(i), type));
148 inline W DotProduct(const PowerWeight<W, n> &w1, in DotProduct() argument
152 w = Plus(w, Times(w1.Value(i), w2.Value(i))); in DotProduct()
Dtuple-weight.h246 inline bool operator==(const TupleWeight<W, n> &w1,
250 equal = equal && (w1.Value(i) == w2.Value(i));
255 inline bool operator!=(const TupleWeight<W, n> &w1,
259 not_equal = not_equal || (w1.Value(i) != w2.Value(i));
264 inline bool ApproxEqual(const TupleWeight<W, n> &w1,
270 ApproxEqual(w1.Value(i), w2.Value(i), delta);
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dfloat-weight.h68 inline bool operator==(const FloatWeight &w1, const FloatWeight &w2) {
71 volatile float v1 = w1.Value();
76 inline bool operator!=(const FloatWeight &w1, const FloatWeight &w2) {
77 return !(w1 == w2);
80 inline bool ApproxEqual(const FloatWeight &w1, const FloatWeight &w2,
82 return w1.Value() <= w2.Value() + delta && w2.Value() <= w1.Value() + delta;
152 inline TropicalWeight Plus(const TropicalWeight &w1, in Plus() argument
154 return w1.Value() < w2.Value() ? w1 : w2; in Plus()
157 inline TropicalWeight Times(const TropicalWeight &w1, in Times() argument
159 float f1 = w1.Value(), f2 = w2.Value(); in Times()
[all …]
Dstring-weight.h288 inline bool operator==(const StringWeight<L, S> &w1,
290 if (w1.Size() != w2.Size())
293 StringWeightIterator<L, S> iter1(w1);
304 inline bool operator!=(const StringWeight<L, S> &w1,
306 return !(w1 == w2);
310 inline bool ApproxEqual(const StringWeight<L, S> &w1,
313 return w1 == w2;
362 Plus(const StringWeight<L, S> &w1, in Plus() argument
364 if (w1 == StringWeight<L, S>::Zero()) in Plus()
367 return w1; in Plus()
[all …]
Dproduct-weight.h37 ProductWeight(W1 w1, W2 w2) : value1_(w1), value2_(w2) {} in ProductWeight() argument
111 inline bool operator!=(const ProductWeight<W1, W2> &w1,
113 return w1.Value1() != w2.Value1() || w1.Value2() != w2.Value2();
118 inline bool ApproxEqual(const ProductWeight<W1, W2> &w1,
121 return w1 == w2;
159 W1 w1 = W1::Zero();
160 strm1 >> w1;
166 w = ProductWeight<W1, W2>(w1, w2);
Dweight.h132 bool operator()(const W &w1, const W &w2) const { in operator()
133 return (Plus(w1, w2) == w1) && w1 != w2; in operator()
/external/dropbear/libtommath/
Dbn_mp_toom_sqr.c22 mp_int w0, w1, w2, w3, w4, tmp1, a0, a1, a2; in mp_toom_sqr() local
26 if ((res = mp_init_multi(&w0, &w1, &w2, &w3, &w4, &a0, &a1, &a2, &tmp1, NULL)) != MP_OKAY) { in mp_toom_sqr()
73 if ((res = mp_sqr(&tmp1, &w1)) != MP_OKAY) { in mp_toom_sqr()
119 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { in mp_toom_sqr()
127 if ((res = mp_div_2(&w1, &w1)) != MP_OKAY) { in mp_toom_sqr()
142 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_sqr()
153 if ((res = mp_sub(&w1, &tmp1, &w1)) != MP_OKAY) { in mp_toom_sqr()
167 if ((res = mp_sub(&w2, &w1, &w2)) != MP_OKAY) { in mp_toom_sqr()
174 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_sqr()
182 if ((res = mp_div_3(&w1, &w1, NULL)) != MP_OKAY) { in mp_toom_sqr()
[all …]
Dbn_mp_toom_mul.c27 mp_int w0, w1, w2, w3, w4, tmp1, tmp2, a0, a1, a2, b0, b1, b2; in mp_toom_mul() local
31 if ((res = mp_init_multi(&w0, &w1, &w2, &w3, &w4, in mp_toom_mul()
109 if ((res = mp_mul(&tmp1, &tmp2, &w1)) != MP_OKAY) { in mp_toom_mul()
175 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { in mp_toom_mul()
183 if ((res = mp_div_2(&w1, &w1)) != MP_OKAY) { in mp_toom_mul()
198 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_mul()
209 if ((res = mp_sub(&w1, &tmp1, &w1)) != MP_OKAY) { in mp_toom_mul()
223 if ((res = mp_sub(&w2, &w1, &w2)) != MP_OKAY) { in mp_toom_mul()
230 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_mul()
238 if ((res = mp_div_3(&w1, &w1, NULL)) != MP_OKAY) { in mp_toom_mul()
[all …]
/external/dropbear/libtomcrypt/src/ciphers/
Dskipjack.c91 tmp = g_func(w1, &kp, skey->skipjack.key); \
92 w1 = tmp ^ w4 ^ x; \
97 tmp = g_func(w1, &kp, skey->skipjack.key); \
99 w3 = w1 ^ w2 ^ x; \
100 w1 = tmp1; w2 = tmp;
103 tmp = w1 ^ w2 ^ x; \
104 w1 = ig_func(w2, &kp, skey->skipjack.key); \
110 w3 = w4; w4 = w1; w1 = tmp;
149 unsigned w1,w2,w3,w4,tmp,tmp1; in _skipjack_ecb_encrypt() local
157 w1 = ((unsigned)pt[0]<<8)|pt[1]; in _skipjack_ecb_encrypt()
[all …]
/external/okhttp/src/main/java/libcore/net/spdy/
DSpdyReader.java86 int w1; in nextFrame() local
88 w1 = in.readInt(); in nextFrame()
94 boolean control = (w1 & 0x80000000) != 0; in nextFrame()
99 version = (w1 & 0x7fff0000) >>> 16; in nextFrame()
100 type = (w1 & 0xffff); in nextFrame()
120 streamId = w1 & 0x7fffffff; in nextFrame()
126 int w1 = in.readInt(); in readSynStream() local
129 streamId = w1 & 0x7fffffff; in readSynStream()
137 int w1 = in.readInt(); in readSynReply() local
139 streamId = w1 & 0x7fffffff; in readSynReply()
/external/chromium/net/websockets/
Dwebsocket_throttle_unittest.cc86 scoped_refptr<WebSocketJob> w1(new WebSocketJob(&delegate)); in TEST_F() local
88 new SocketStream(GURL("ws://host1/"), w1.get())); in TEST_F()
89 w1->InitSocketStream(s1.get()); in TEST_F()
96 EXPECT_EQ(OK, w1->OnStartOpenConnection(s1, &callback_s1)); in TEST_F()
199 w1->OnReceivedData(s1.get(), kHeader, sizeof(kHeader) - 1); in TEST_F()
215 w1->OnReceivedData(s1.get(), kHeader2, sizeof(kHeader2) - 1); in TEST_F()
218 EXPECT_EQ(WebSocketJob::OPEN, w1->state()); in TEST_F()
230 w1->OnClose(s1.get()); in TEST_F()
289 scoped_refptr<WebSocketJob> w1(new WebSocketJob(&delegate)); in TEST_F() local
291 new SocketStream(GURL("ws://localhost/"), w1.get())); in TEST_F()
[all …]
/external/tremolo/Tremolo/
Dmdct.c276 DATA_TYPE *w1 = x+(n>>1); in mdct_step7() local
282 w1 -= 2; in mdct_step7()
284 s0 = w0[0] + w1[0]; in mdct_step7()
285 s1 = w1[1] - w0[1]; in mdct_step7()
290 s0 = (w0[1] + w1[1])>>1; in mdct_step7()
291 s1 = (w0[0] - w1[0])>>1; in mdct_step7()
294 w1[0] = s0 - s2; in mdct_step7()
295 w1[1] = s3 - s1; in mdct_step7()
300 w1 -= 2; in mdct_step7()
302 s0 = w0[0] + w1[0]; in mdct_step7()
[all …]
/external/opencv/cv/src/
Dcvmatchcontours.cpp231 double match_v, d12, area1, area2, r11, r12, r21, r22, w1, w2; in cvMatchContourTrees() local
284 r11 = r12 = r21 = r22 = w1 = w2 = d12 = 0; in cvMatchContourTrees()
314 w1 = ptr11[j]->area / area1; in cvMatchContourTrees()
343 t0 = fabs( r11 * w1 + r21 * w2 ); in cvMatchContourTrees()
344 t1 = fabs( r12 * w1 + r22 * w2 ); in cvMatchContourTrees()
348 t0 = fabs( r11 * w1 - r21 * w2 ); in cvMatchContourTrees()
349 t1 = fabs( r12 * w1 - r22 * w2 ); in cvMatchContourTrees()
D_cvmatrix.h283 CV_INLINE void icvMulMatrix_32f( const float* src1, int w1, int h1, in icvMulMatrix_32f() argument
289 if( w1 != h2 ) in icvMulMatrix_32f()
295 for( i = 0; i < h1; i++, src1 += w1, dst += w2 ) in icvMulMatrix_32f()
299 for( k = 0; k < w1; k++ ) in icvMulMatrix_32f()
308 CV_INLINE void icvMulMatrix_64d( const double* src1, int w1, int h1, in icvMulMatrix_64d() argument
314 if( w1 != h2 ) in icvMulMatrix_64d()
320 for( i = 0; i < h1; i++, src1 += w1, dst += w2 ) in icvMulMatrix_64d()
324 for( k = 0; k < w1; k++ ) in icvMulMatrix_64d()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMDocumentImpl.java206 private final int appendNode(int w0, int w1, int w2, int w3) in appendNode() argument
209 int slotnumber = nodes.appendSlot(w0, w1, w2, w3); in appendNode()
211 if (DEBUG) System.out.println(slotnumber+": "+w0+" "+w1+" "+w2+" "+w3); in appendNode()
2097 int w1 = currentParent; in appendTextChild() local
2103 int ourslot = appendNode(w0, w1, w2, w3); in appendTextChild()
2120 int w1 = currentParent; in appendComment() local
2126 int ourslot = appendNode(w0, w1, w2, w3); in appendComment()
2156 int w1 = currentParent; in appendStartElement() local
2164 int ourslot = appendNode(w0, w1, w2, w3); in appendStartElement()
2203 int w1 = currentParent; in appendNSDeclaration() local
[all …]
DChunkedIntArray.java71 int appendSlot(int w0, int w1, int w2, int w3) in appendSlot() argument
96 chunk[slotpos+1] = w1; in appendSlot()
221 void writeSlot(int position, int w0, int w1, int w2, int w3) in writeSlot() argument
232 chunk[slotpos + 1] = w1; in writeSlot()
/external/opencv/cvaux/src/
Dcvmorphcontours.cpp384 double w1,w2; in _cvWorkEast() local
388 w1 = W[i-1][j].w_east /*+ _cvBendingWork( &edges1[i-2], in _cvWorkEast()
403 if(w1<w2) in _cvWorkEast()
405 W[i][j].w_east = w1 + _cvStretchingWork( &edges1[i-1], &null_edge ); in _cvWorkEast()
422 double w1,w2,w3; in _cvWorkSouthEast() local
429 w1 = W[i-1][j-1].w_east + _cvBendingWork(&edges1[i-2], in _cvWorkSouthEast()
450 if( w1<w2 ) in _cvWorkSouthEast()
452 if(w1<w3) in _cvWorkSouthEast()
454 W[i][j].w_southeast = w1 + _cvStretchingWork( &edges1[i-1], &edges2[j-1] ); in _cvWorkSouthEast()
482 double w1,w2; in _cvWorkSouth() local
[all …]
/external/clang/test/SemaCXX/
Ddefault-assignment-operator.cpp53 W w1, w2; variable
56 w1 = w2; in h()

12345