Searched refs:TropicalWeight (Results 1 – 9 of 9) sorted by relevance
/external/openfst/src/include/fst/ |
D | signed-log-weight.h | 33 : public PairWeight<TropicalWeight, LogWeightTpl<T> > { 35 typedef TropicalWeight X1; 97 h1 = TropicalWeight(1.0).Hash(); in Hash() 99 h1 = TropicalWeight(-1.0).Hash(); in Hash() 161 return SignedLogWeightTpl<T>(TropicalWeight(1.0), (f1 + f2)); in Times() 163 return SignedLogWeightTpl<T>(TropicalWeight(-1.0), (f1 + f2)); in Times() 177 return SignedLogWeightTpl<T>(TropicalWeight(1.0), 180 return SignedLogWeightTpl<T>(TropicalWeight(1.0), 183 return SignedLogWeightTpl<T>(TropicalWeight(1.0), (f1 - f2)); 185 return SignedLogWeightTpl<T>(TropicalWeight(-1.0), (f1 - f2)); [all …]
|
D | float-weight.h | 239 typedef TropicalWeightTpl<float> TropicalWeight; typedef 568 struct WeightConvert<LogWeight, TropicalWeight> { 569 TropicalWeight operator()(LogWeight w) const { return w.Value(); } 573 struct WeightConvert<Log64Weight, TropicalWeight> { 574 TropicalWeight operator()(Log64Weight w) const { return w.Value(); } 579 struct WeightConvert<TropicalWeight, LogWeight> { 580 LogWeight operator()(TropicalWeight w) const { return w.Value(); } 590 struct WeightConvert<TropicalWeight, Log64Weight> { 591 Log64Weight operator()(TropicalWeight w) const { return w.Value(); }
|
D | fst-decl.h | 38 typedef TropicalWeightTpl<float> TropicalWeight; typedef 43 typedef ArcTpl<TropicalWeight> StdArc;
|
D | random-weight.h | 304 TropicalWeight(-1.0) : in operator() 305 TropicalWeight(1.0), in operator()
|
D | vector-fst.h | 393 TropicalWeight WeightFromString<TropicalWeight>::operator()(const string &s) { in operator() 396 return TropicalWeight(f); in operator()
|
D | arc.h | 67 typedef ArcTpl<TropicalWeight> StdArc;
|
/external/openfst/src/test/ |
D | weight_test.cc | 32 using fst::TropicalWeight; 113 CHECK(TropicalWeight::Type() == "tropical"); in main() 118 TropicalWeight tw(15.0); in main() 131 typedef GallicWeight<int, TropicalWeight> TropicalGallicWeight; in main() 140 typedef ProductWeight<TropicalWeight, TropicalWeight> TropicalProductWeight; in main() 149 typedef PowerWeight<TropicalWeight, 3> TropicalCubeWeight; in main() 158 typedef ProductWeight<TropicalWeight, TropicalProductWeight> in main() 169 typedef ProductWeight<TropicalProductWeight, TropicalWeight> in main() 244 typedef LexicographicWeight<TropicalWeight, TropicalWeight> in main()
|
D | algo_test.cc | 57 using fst::TropicalWeight; 130 typedef LexicographicArc<TropicalWeight, TropicalWeight> in main() 141 typedef PowerWeight<TropicalWeight, 3> TropicalCubeWeight; in main()
|
D | fst_test.cc | 34 typedef ProductWeight<TropicalWeight, LogWeight> Weight;
|