/external/openfst/src/include/fst/script/ |
reweight.h | 25 #include <fst/script/weight-class.h> 37 typedef typename Arc::Weight Weight; 38 vector<Weight> potentials(args->arg2.size()); 41 potentials[i] = *(args->arg2[i].GetWeight<Weight>());
|
prune.h | 25 #include <fst/script/weight-class.h> 56 typedef typename A::Weight Weight; 59 Weight weight_threshold = *(opts.weight_threshold.GetWeight<Weight>()); 61 vector<Weight> *distance = 0; 64 distance = new vector<Weight>(opts.distance->size()); 66 (*distance)[i] = *((*opts.distance)[i].GetWeight<Weight>()); 82 typedef typename Arc::Weight Weight; [all...] |
rmepsilon.h | 25 #include <fst/script/weight-class.h> 66 vector<typename Arc::Weight> *distance, 69 typedef typename Arc::Weight Weight; 71 typename Arc::Weight weight_thresh = 72 *(opts.weight_threshold.GetWeight<Weight>()); 100 NaturalShortestFirstQueue<StateId, Weight> queue(*distance); 102 Weight> > ropts( 138 vector<typename Arc::Weight> distance; 160 typename Arc::Weight w = *(args->arg3.GetWeight<typename Arc::Weight>()) [all...] |
shortest-distance.h | 25 #include <fst/script/weight-class.h> 61 const vector<typename Arc::Weight> *) { 73 const vector<typename Arc::Weight> *distance) { 80 typename Arc::Weight>, 83 static NaturalShortestFirstQueue<typename Arc::StateId, typename Arc::Weight> 85 const vector<typename Arc::Weight> *distance) { 87 typename Arc::Weight>(*distance); 95 const Fst<Arc> &fst, const vector<typename Arc::Weight> *weights) { 106 vector<typename Arc::Weight> weights; 166 typedef typename Arc::Weight Weight [all...] |
shortest-path.h | 25 #include <fst/script/weight-class.h> 62 typedef typename Arc::Weight Weight; 65 vector<typename Arc::Weight> weights; 66 typename Arc::Weight weight_threshold = 67 *(opts.weight_threshold.GetWeight<Weight>()); 107 typedef NaturalShortestFirstQueue<StateId, Weight> Queue; 163 typename Arc::Weight weight_threshold = 164 *(args->arg6.GetWeight<typename Arc::Weight>());
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
Weight.java | 24 public class Weight extends Activity {
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
Weight.java | 25 * Exercise table layout with cells having a weight. 27 public class Weight extends Activity {
|
/external/llvm/lib/CodeGen/ |
MachineBranchProbabilityInfo.cpp | 41 uint32_t Weight = getEdgeWeight(MBB, I); 42 Sum += Weight; 56 uint32_t Weight = getEdgeWeight(MBB, I); 57 Sum += Weight / Scale; 66 uint32_t Weight = Src->getSuccWeight(Dst); 67 if (!Weight) 69 return Weight; 94 uint32_t Weight = getEdgeWeight(MBB, I); 95 if (Weight > MaxWeight) { 96 MaxWeight = Weight; [all...] |
/external/openfst/src/include/fst/ |
equal.h | 33 typedef typename Arc::Weight Weight; 56 Weight final1 = fst1.Final(s1); 57 Weight final2 = fst2.Final(s2); 89 } else if (!ApproxEqual(arc1.weight, arc2.weight, delta)) { 93 << ", weight1 = " << arc1.weight 94 << ", weight2 = " << arc2.weight;
|
randequivalent.h | 48 typedef typename Arc::Weight Weight; 86 if (!(Weight::Properties() & kIdempotent) && 89 Weight sum1 = ShortestDistance(pfst1); 96 if (!(Weight::Properties() & kIdempotent) && 99 Weight sum2 = ShortestDistance(pfst2);
|
reverse.h | 34 // MutableFst. If A transduces string x to y with weight a, then the 36 // weight a.Reverse(). 41 // the input arc type except having the reversed Weight type. 45 typedef typename Arc::Weight Weight; 46 typedef typename RevArc::Weight RevWeight; 67 Weight final = ifst.Final(is); 68 if (final != Weight::Zero()) { 77 RevArc oarc(iarc.ilabel, iarc.olabel, iarc.weight.Reverse(), os);
|
reweight.h | 35 // vector in the direction defined by TYPE. Weight needs to be left 39 // An arc of weight w, with an origin state of potential p and 45 const vector<typename Arc::Weight> &potential, 47 typedef typename Arc::Weight Weight; 52 if (type == REWEIGHT_TO_FINAL && !(Weight::Properties() & kRightSemiring)) { 54 << "Weight to be right distributive: " 55 << Weight::Type(); 60 if (type == REWEIGHT_TO_INITIAL && !(Weight::Properties() & kLeftSemiring)) { 62 << "Weight to be left distributive: 73 typename Arc::Weight weight = potential[state]; local [all...] |
rmfinalepsilon.h | 39 typedef typename A::Weight Weight; 54 if (fst->Final(s) != Weight::Zero()) { 69 // Move the final weight. Complexity O(E) 73 Weight w(fst->Final(s)); 82 w = Plus(Times(fst->Final(arc.nextstate), arc.weight), w);
|
statesort.h | 41 typedef typename Arc::Weight Weight; 66 Weight final1 = fst->Final(s1), final2 = Weight::Zero();
|
verify.h | 34 typedef typename Arc::Weight Weight; 85 } else if (!arc.weight.Member() || arc.weight == Weight::Zero()) { 86 LOG(ERROR) << "Verify: Fst weight of arc at position " 102 LOG(ERROR) << "Verify: Fst final weight of state " << s << " is invalid";
|
closure.h | 35 // MutableFst input. If FST transduces string x to y with weight a, 36 // then the closure transduces x to y with weight a, xx to yy with 37 // weight Times(a, a), xxx to yyy with with Times(Times(a, a), a), 39 // transduced to itself with weight Weight::One() as well. 49 typedef typename Arc::Weight Weight; 57 Weight final = fst->Final(s); 58 if (final != Weight::Zero()) 65 fst->SetFinal(nstart, Weight::One()) [all...] |
difference.h | 68 typedef typename A::Weight Weight;
|
intersect.h | 67 typedef typename A::Weight Weight;
|
map.h | 57 typedef typename B::Weight Weight;
|
weight.h | 0 // weight.h 19 // General weight set and associated semiring operation definitions. 31 // A Weight class must have binary functions =Plus= and =Times= and 35 // In addition, the following should be defined for a Weight: 39 // >>: reads textual representation of a weight. 40 // <<: prints textual representation of a weight. 41 // Read(istream &strm): reads binary representation of a weight. 42 // Write(ostream &strm): writes binary representation of a weight. 43 // Hash: maps weight to size_t. 54 // ReverseWeight: the type of the corresponding reverse weight [all...] |
concat.h | 35 // transduces string x to y with weight a and FST2 transduces string w 36 // to v with weight b, then their concatenation transduces string xw 50 typedef typename Arc::Weight Weight; 93 Weight final = fst1->Final(s1); 94 if (final != Weight::Zero()) { 95 fst1->SetFinal(s1, Weight::Zero()); 116 typedef typename Arc::Weight Weight; 145 Weight final = fst1.Final(s1) [all...] |
equivalent.h | 57 typedef typename Arc::Weight Weight; 86 false : (fa.Final(UnMapState(s)) != Weight::Zero()); 133 typedef typename Arc::Weight Weight; 229 if (arc.weight != Weight::Zero()) { // Zero-weight arcs 241 if (arc.weight != Weight::Zero()) { // Zero-weight arc [all...] |
expanded-fst.h | 95 typename A::Weight Final(const ExpandedFst<A> &fst, typename A::StateId s) { 128 typedef typename Arc::Weight Weight;
|
test-properties.h | 79 typedef typename Arc::Weight Weight; 175 if (arc.weight != Weight::One() && arc.weight != Weight::Zero()) { 200 Weight final = fst.Final(s); 202 if (final != Weight::Zero()) { // final state 203 if (final != Weight::One()) {
|
union.h | 36 // weight a and B transduces string w to v with weight b, then their 37 // union transduces x to y with weight a and w to v with weight b. 47 typedef typename Arc::Weight Weight; 98 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)); 121 // Fst. If A transduces string x to y with weight a and B transduce [all...] |