Home
last modified time | relevance | path

Searched refs:LogWeightTpl (Results 1 – 5 of 5) sorted by relevance

/external/openfst/src/include/fst/
Dfloat-weight.h313 class LogWeightTpl : public FloatWeightTpl<T> {
317 typedef LogWeightTpl ReverseWeight;
319 LogWeightTpl() : FloatWeightTpl<T>() {} in LogWeightTpl() function
321 LogWeightTpl(T f) : FloatWeightTpl<T>(f) {} in LogWeightTpl() function
323 LogWeightTpl(const LogWeightTpl<T> &w) : FloatWeightTpl<T>(w) {} in LogWeightTpl() function
325 static const LogWeightTpl<T> Zero() { in Zero()
326 return LogWeightTpl<T>(FloatLimits<T>::PosInfinity()); in Zero()
329 static const LogWeightTpl<T> One() { in One()
330 return LogWeightTpl<T>(0.0F); in One()
333 static const LogWeightTpl<T> NoWeight() { in NoWeight()
[all …]
Dsigned-log-weight.h33 : public PairWeight<TropicalWeight, LogWeightTpl<T> > {
36 typedef LogWeightTpl<T> X2;
197 return w1.Value2() == LogWeightTpl<T>::Zero()
198 && w2.Value2() == LogWeightTpl<T>::Zero();
210 return (w1.Value2() == LogWeightTpl<T>::Zero()) &&
211 (w2.Value2() == LogWeightTpl<T>::Zero());
Drandom-weight.h82 typedef LogWeightTpl<T> Weight;
307 LogWeightTpl<T>::Zero() : in operator()
308 LogWeightTpl<T>(static_cast<T>(n))); in operator()
Dfst-decl.h34 template <class W> class LogWeightTpl; variable
39 typedef LogWeightTpl<float> LogWeight;
/external/openfst/src/test/
Dweight_test.cc39 using fst::LogWeightTpl;
83 WeightTester<LogWeightTpl<T>, LogWeightGenerator_<T> > in TestTemplatedWeights()
116 CHECK(LogWeightTpl<double>::Type() != LogWeightTpl<float>::Type()); in main()