Searched refs:One (Results 26 - 50 of 183) sorted by relevance

12345678

/external/openfst/src/include/fst/
H A Dsparse-power-weight.h65 return ApproxEqual(v1, v2, delta_) ? W::One() : W::Zero();
83 using SparseTupleWeight<W, K>::One;
107 static const SparsePowerWeight<W, K> &One() { function in class:fst::SparsePowerWeight
108 static const SparsePowerWeight<W, K> one(SparseTupleWeight<W, K>::One());
198 return ret == SparsePowerWeight<W, K>::One();
H A Dproduct-weight.h38 using PairWeight<W1, W2>::One;
57 static const ProductWeight<W1, W2> &One() { function in class:fst::ProductWeight
58 static const ProductWeight<W1, W2> one(PairWeight<W1, W2>::One());
H A Dunion.h98 fst1->AddArc(start1, Arc(0, 0, Weight::One(), start2 + numstates1));
102 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start1));
103 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start2 + numstates1));
H A Dstring.h96 const Weight &weight = Weight::One()) const {
101 fst->AddArc(i, Arc(labels[i], labels[i], Weight::One(), i + 1));
115 const Weight &weight = Weight::One()) const {
119 compacts.push_back(make_pair(labels[i], Weight::One()));
H A Dweight.h22 // two designated elements Zero and One with the following properties:
24 // Times: associative and has identity One, distributes w.r.t. Plus, and
32 // static member functions =Zero()= and =One()= and these must form
149 // Power(w, 0) is One() for the semiring, and
154 W result = W::One();
H A Dclosure.h39 // transduced to itself with weight Weight::One() as well.
65 fst->SetFinal(nstart, Weight::One());
67 fst->AddArc(nstart, Arc(0, 0, Weight::One(), start));
96 // to itself with weight Weight::One() as well.
H A Dexpectation-weight.h21 // One: <One, Zero>
80 static const ExpectationWeight<X1, X2> &One() { function in class:fst::ExpectationWeight
81 static const ExpectationWeight<X1, X2> one(X1::One(), X2::Zero());
H A Dshortest-path.h52 // One() and Zero() according to NaturalLess.
131 distance->push_back(Weight::One());
222 Weight dx = px.first == superfinal_ ? Weight::One() :
224 Weight dy = py.first == superfinal_ ? Weight::One() :
306 // distance from 'superfinal' to the final state is 'Weight::One()',
320 less(weight_threshold, Weight::One()) ||
327 ofst->SetFinal(final, Weight::One());
330 pairs[final] = Pair(ifst.Start(), Weight::One());
339 Weight d = p.first == superfinal ? Weight::One() :
350 ofst->AddArc(ofst->Start(), Arc(0, 0, Weight::One(), stat
[all...]
H A Dreverse.h65 ofst->SetFinal(os, RevWeight::One());
H A Dlexicographic-weight.h47 using PairWeight<W1, W2>::One;
80 static const LexicographicWeight<W1, W2> &One() { function in class:fst::LexicographicWeight
81 static const LexicographicWeight<W1, W2> one(PairWeight<W1, W2>::One());
H A Dpower-weight.h42 using TupleWeight<W, n>::One;
61 static const PowerWeight<W, n> &One() { function in class:fst::PowerWeight
62 static const PowerWeight<W, n> one(TupleWeight<W, n>::One());
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dunion.h73 fst1->AddArc(start1, Arc(0, 0, Weight::One(), start2 + numstates1));
77 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start1));
78 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start2 + numstates1));
H A Dshortest-path.h101 distance->push_back(Weight::One());
145 (*distance)[source] = Weight::One();
263 distance->insert(distance->begin(), Weight::One());
278 distance->push_back(Weight::One()); // differently when unique=true
287 ofst->SetFinal(final, Weight::One());
290 pairs[final] = Pair(rfst.Start(), Weight::One());
301 ofst->AddArc(ofst->Start(), Arc(0, 0, Weight::One(), state));
H A Dclosure.h32 // transduced to itself with weight Weight::One() as well.
57 fst->SetFinal(nstart, Weight::One());
59 fst->AddArc(nstart, Arc(0, 0, Weight::One(), start));
88 // to itself with weight Weight::One() as well.
H A Drandgen.h141 ofst->SetFinal(opts.dest, Weight::One());
146 Arc oarc(iarc.ilabel, iarc.olabel, Weight::One(), ofst->AddState());
H A Dreverse.h56 ofst->SetFinal(os, RevWeight::One());
H A Dproduct-weight.h44 static const ProductWeight<W1, W2> &One() { function in class:fst::ProductWeight
45 static const ProductWeight<W1, W2> one(W1::One(), W2::One());
H A Dtest-properties.h124 Arc prev_arc(kNoLabel, kNoLabel, Weight::One(), 0);
168 if (arc.weight != Weight::One() && arc.weight != Weight::Zero()) {
195 if (final != Weight::One()) {
/external/openfst/src/include/fst/script/
H A Dprint-impl.h121 if (show_weight_one_ || arc.weight != Weight::One())
129 if (show_weight_one_ || final != Weight::One()) {
143 bool show_weight_one_; // print weights equal to Weight::One()
H A Dcompile-impl.h90 fst_.SetFinal(s, Weight::One());
99 arc.weight = Weight::One();
110 arc.weight = Weight::One();
/external/openfst/src/test/
H A Dweight-tester.h65 // Tests (Plus, Times, Zero, One) defines a commutative semiring.
78 CHECK(Times(w1, Weight::One()) == w1);
79 CHECK(Times(Weight::One(), w1) == w1);
97 // Check Power(w, 0) is Weight::One()
98 CHECK(Power(w1, 0) == Weight::One());
198 Weight v(Weight::One());
/external/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp162 ConstantInt *One; local
168 One = Builder.getInt64(1);
174 One = Builder.getInt32(1);
272 Value *SR_1 = Builder.CreateAdd(SR, One);
310 Value *Tmp5 = Builder.CreateShl(R_1, One);
313 Value *Tmp8 = Builder.CreateShl(Q_2, One);
317 Value *Carry = Builder.CreateAnd(Tmp10, One);
333 Value *Tmp13 = Builder.CreateShl(Q_3, One);
/external/llvm/unittests/Support/
H A DMemoryBufferTest.cpp108 OwningBuffer One(MemoryBuffer::getNewUninitMemBuffer(321));
109 EXPECT_TRUE(nullptr != One.get());
/external/openfst/src/bin/
H A Dfstmap.cc61 s::WeightClass::One() : s::WeightClass::Zero());
/external/srec/tools/grxmlcompile/
H A Dfst-io.h122 if (arc.weight != Weight::One())
130 if (final != Weight::One()) {
243 fst_.SetFinal(s, Weight::One());
252 arc.weight = Weight::One();
263 arc.weight = Weight::One();

Completed in 903 milliseconds

12345678