/external/openfst/src/include/fst/script/ |
H A D | compile-impl.h | 51 typedef typename A::Weight Weight; typedef in class:fst::FstCompiler 90 fst_.SetFinal(s, Weight::One()); 99 arc.weight = Weight::One(); 110 arc.weight = Weight::One(); 187 Weight StrToWeight(const char *s, bool allow_zero) const { 188 Weight w; 191 if (!strm || (!allow_zero && w == Weight::Zero())) { 195 w = Weight::NoWeight();
|
H A D | shortest-path.h | 62 typedef typename Arc::Weight Weight; typedef 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>());
|
H A D | weight-class.h | 205 #define REGISTER_FST_WEIGHT__(Weight, line) \ 207 Weight::Type(), \ 208 StrToWeightImplBase<Weight>) 211 #define REGISTER_FST_WEIGHT_EXPANDER(Weight, line) \ 212 REGISTER_FST_WEIGHT__(Weight, line) 217 #define REGISTER_FST_WEIGHT(Weight) \ 218 REGISTER_FST_WEIGHT_EXPANDER(Weight, __LINE__)
|
/external/openfst/src/include/fst/ |
H A D | statesort.h | 41 typedef typename Arc::Weight Weight; typedef 66 Weight final1 = fst->Final(s1), final2 = Weight::Zero();
|
H A D | randgen.h | 50 typedef typename A::Weight Weight; typedef in struct:fst::UniformArcSelector 57 if (fst.Final(s) != Weight::Zero()) 66 // the state. Weight::zero transitions are disregarded. 67 // Assumes Weight::Value() accesses the floating point 73 typedef typename A::Weight Weight; typedef in class:fst::LogProbArcSelector 100 WeightConvert<Weight, Log64Weight> to_log_weight_; 114 typedef typename A::Weight Weight; typedef in class:fst::FastLogProbArcSelector 165 typedef typename A::Weight Weight; typedef in class:fst::ArcSampler 241 typedef typename A::Weight Weight; typedef in class:fst::ArcSampler 345 typedef typename A::Weight Weight; typedef in class:fst::RandGenFstImpl 516 typedef typename A::Weight Weight; typedef in class:fst::RandGenFst 608 typedef typename IArc::Weight Weight; typedef in class:fst::RandGenVisitor 686 typedef typename OArc::Weight Weight; typedef [all...] |
H A D | compose-filter.h | 191 // void FilterFinal(Weight *final1, Weight *final2) const; 218 typedef typename Arc::Weight Weight; typedef in class:fst::SequenceComposeFilter 253 bool fin1 = internal::Final(fst1_, s1) != Weight::Zero(); 268 void FilterFinal(Weight *, Weight *) const {} 303 typedef typename Arc::Weight Weight; typedef in class:fst::AltSequenceComposeFilter 338 bool fin2 = internal::Final(fst2_, s2) != Weight 389 typedef typename Arc::Weight Weight; typedef in class:fst::MatchComposeFilter 492 typedef typename Arc::Weight Weight; typedef in class:fst::MultiEpsFilter [all...] |
H A D | factor-weight.h | 170 typedef typename A::Weight Weight; typedef in class:fst::FactorWeightFstImpl 177 Element(StateId s, Weight w) : state(s), weight(w) {} 180 Weight weight; // Residual weight 224 StateId start = FindState(Element(fst_->Start(), Weight::One())); 230 Weight Final(StateId s) { 234 Weight w = e.state == kNoStateId 236 : (Weight) Times(e.weight, fst_->Final(e.state)); 241 SetFinal(s, Weight::Zero()); 283 if (!(mode_ & kFactorArcWeights) && e.weight == Weight 405 typedef typename A::Weight Weight; typedef in class:fst::FactorWeightFst [all...] |
H A D | state-map.h | 57 // B::Weight Final(B::StateId s) const; 92 typedef typename A::Weight Weight; typedef 132 typedef typename A::Weight Weight; typedef 205 typedef typename B::Weight Weight; typedef in class:fst::StateMapFstImpl 245 Weight Final(StateId s) { 334 typedef typename B::Weight Weight; typedef in class:fst::StateMapFst 406 typedef typename A::Weight Weight; typedef in class:fst::IdentityStateMapper 447 typedef typename A::Weight Weight; typedef in class:fst::ArcSumMapper 531 typedef typename A::Weight Weight; typedef in class:fst::ArcUniqueMapper [all...] |
H A D | equivalent.h | 57 typedef typename Arc::Weight Weight; typedef in struct:fst::EquivalenceUtil 86 false : (fa.Final(UnMapState(s)) != Weight::Zero()); 133 typedef typename Arc::Weight Weight; typedef 229 if (arc.weight != Weight::Zero()) { // Zero-weight arcs 241 if (arc.weight != Weight::Zero()) { // Zero-weight arcs
|
H A D | test-properties.h | 79 typedef typename Arc::Weight Weight; typedef 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()) {
|
H A D | complement.h | 60 typedef typename A::Weight Weight; typedef in class:fst::ComplementFstImpl 93 Weight Final(StateId s) const { 94 if (s == 0 || fst_->Final(s - 1) == Weight::Zero()) 95 return Weight::One(); 97 return Weight::Zero(); 238 typedef typename A::Weight Weight; typedef in class:fst::ArcIterator 259 arc_.weight = Weight::One();
|
H A D | lookahead-matcher.h | 47 // typedef typename Arc::Weight Weight; 76 // // A trivial implementation returns Weight::One(). Non-trivial 78 // Weight LookAheadWeight() const; 138 typedef typename A::Weight Weight; typedef in class:fst::LookAheadMatcherBase 141 : weight_(Weight::One()), 142 prefix_arc_(kNoLabel, kNoLabel, Weight::One(), kNoStateId) {} 152 Weight LookAheadWeight() const { return weight_; } 166 void SetLookAheadWeight(const Weight 191 typedef typename Arc::Weight Weight; typedef in class:fst::TrivialLookAheadMatcher 257 typedef typename Arc::Weight Weight; typedef in class:fst::ArcLookAheadMatcher 430 typedef typename Arc::Weight Weight; typedef in class:fst::LabelLookAheadMatcher 714 typedef typename Arc::Weight Weight; typedef in class:fst::LookAheadMatcher [all...] |
H A D | properties.h | 324 template <typename Weight> 325 uint64 SetFinalProperties(uint64 inprops, Weight old_weight, 326 Weight new_weight); 387 template <typename Weight> 388 uint64 SetFinalProperties(uint64 inprops, Weight old_weight, 389 Weight new_weight) { 391 if (old_weight != Weight::Zero() && old_weight != Weight::One()) { 394 if (new_weight != Weight::Zero() && new_weight != Weight [all...] |
H A D | verify.h | 34 typedef typename Arc::Weight Weight; typedef 85 } else if (!arc.weight.Member() || arc.weight == Weight::Zero()) {
|
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | equal.h | 30 typedef typename Arc::Weight Weight; typedef 53 Weight final1 = fst1.Final(s1); 54 Weight final2 = fst2.Final(s2);
|
H A D | rmfinalepsilon.h | 32 typedef typename A::Weight Weight; typedef 47 if (fst->Final(s) != Weight::Zero()) { 66 Weight w(fst->Final(s));
|
H A D | factor-weight.h | 147 typedef typename A::Weight Weight; typedef in class:fst::FactorWeightFstImpl 154 Element(StateId s, Weight w) : state(s), weight(w) {} 157 Weight weight; // Residual weight 180 StateId start = FindState(Element(fst_->Start(), Weight::One())); 186 Weight Final(StateId s) { 190 Weight w = e.state == kNoStateId 192 : (Weight) Times(e.weight, fst_->Final(e.state)); 194 if (w != Weight::Zero() && f.Done()) 197 this->SetFinal(s, Weight 343 typedef typename A::Weight Weight; typedef in class:fst::FactorWeightFst [all...] |
H A D | rmepsilon.h | 58 typedef typename Arc::Weight Weight; typedef in class:fst::RmEpsilonState 61 vector<Weight> *distance, 73 const Weight &Final() const { return final_; } 115 vector<Weight> *distance_; 128 Weight final_; // Final weight of state being expanded 138 final_ = Weight::Zero(); 170 Weight &w = arcs_[((*it).second).second].weight; 201 vector<typename Arc::Weight> *distance, 204 typedef typename Arc::Weight Weigh typedef 288 typedef typename Arc::Weight Weight; typedef 325 typedef typename A::Weight Weight; typedef in class:fst::RmEpsilonFstImpl 431 typedef typename A::Weight Weight; typedef in class:fst::RmEpsilonFst [all...] |
H A D | test-properties.h | 75 typedef typename Arc::Weight Weight; typedef 124 Arc prev_arc(kNoLabel, kNoLabel, Weight::One(), 0); 168 if (arc.weight != Weight::One() && arc.weight != Weight::Zero()) { 192 Weight final = fst.Final(s); 194 if (final != Weight::Zero()) { // final state 195 if (final != Weight::One()) {
|
H A D | equivalent.h | 47 typedef typename Arc::Weight Weight; typedef in struct:fst::EquivalenceUtil 76 false : (fa.Final(UnMapState(s)) != Weight::Zero()); 113 typedef typename Arc::Weight Weight; typedef 193 if (arc.weight != Weight::Zero()) { // Zero-weight arcs 205 if (arc.weight != Weight::Zero()) { // Zero-weight arcs
|
H A D | vector-fst.h | 39 typedef typename Arc::Weight Weight; typedef in class:fst::VectorFstBaseImpl 51 Weight Final(StateId s) const { return states_[s]->final; } 59 void SetFinal(StateId s, Weight w) { states_[s]->final = w; } 162 typedef typename A::Weight Weight; typedef in struct:fst::VectorState 165 VectorState() : final(Weight::Zero()), niepsilons(0), noepsilons(0) {} 167 Weight final; // Final weight 189 typedef typename A::Weight Weight; typedef in class:fst::VectorFstImpl 462 typedef typename A::Weight Weight; typedef in class:fst::VectorFst 727 typedef typename A::Weight Weight; typedef in class:fst::MutableArcIterator [all...] |
H A D | verify.h | 31 typedef typename Arc::Weight Weight; typedef 82 } else if (!arc.weight.Member() || arc.weight == Weight::Zero()) {
|
/external/openfst/src/include/fst/extensions/pdt/ |
H A D | shortest-path.h | 71 typedef typename Arc::Weight Weight; typedef in class:fst::PdtShortestPathData 113 SearchData() : distance(Weight::Zero()), 118 Weight distance; // Distance to this state from PDT 'start' state 148 Weight Distance(SearchState s) const { 153 Weight Distance(const ParenSpec &paren) const { 178 void SetDistance(SearchState s, Weight w) { 183 void SetDistance(const ParenSpec &paren, Weight w) { 348 = Arc(kNoLabel, kNoLabel, Weight::Zero(), kNoStateId); 383 typedef typename Arc::Weight Weigh typedef in class:fst::PdtShortestPath [all...] |
/external/srec/tools/grxmlcompile/ |
H A D | fst-io.h | 46 typedef typename A::Weight Weight; typedef in class:fst::FstPrinter 122 if (arc.weight != Weight::One()) 127 Weight final = fst_.Final(s); 128 if (final != Weight::Zero() || !output) { 130 if (final != Weight::One()) { 210 typedef typename A::Weight Weight; typedef in class:fst::FstReader 243 fst_.SetFinal(s, Weight::One()); 252 arc.weight = Weight [all...] |
/external/llvm/utils/TableGen/ |
H A D | CodeGenRegisters.h | 404 // Weight assigned to this RegUnit for estimating register pressure. 407 unsigned Weight; member in struct:llvm::RegUnit 418 RegUnit() : Weight(0), RegClassUnitSetsIdx(0) { 434 unsigned Weight; // Cache the sum of all unit weights. member in struct:llvm::RegUnitSet 437 RegUnitSet() : Weight(0), Order(0) {} 587 unsigned newRegUnit(unsigned Weight) { argument 589 RegUnits.back().Weight = Weight; 623 unsigned Weight = 0; local 626 Weight [all...] |