Home
last modified time | relevance | path

Searched refs:TropicalWeight (Results 1 – 9 of 9) sorted by relevance

/external/openfst/src/include/fst/
Dsigned-log-weight.h33 : 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 …]
Dfloat-weight.h239 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(); }
Dfst-decl.h38 typedef TropicalWeightTpl<float> TropicalWeight; typedef
43 typedef ArcTpl<TropicalWeight> StdArc;
Drandom-weight.h304 TropicalWeight(-1.0) : in operator()
305 TropicalWeight(1.0), in operator()
Dvector-fst.h393 TropicalWeight WeightFromString<TropicalWeight>::operator()(const string &s) { in operator()
396 return TropicalWeight(f); in operator()
Darc.h67 typedef ArcTpl<TropicalWeight> StdArc;
/external/openfst/src/test/
Dweight_test.cc32 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()
Dalgo_test.cc57 using fst::TropicalWeight;
130 typedef LexicographicArc<TropicalWeight, TropicalWeight> in main()
141 typedef PowerWeight<TropicalWeight, 3> TropicalCubeWeight; in main()
Dfst_test.cc34 typedef ProductWeight<TropicalWeight, LogWeight> Weight;