Home | History | Annotate | Download | only in fst

Lines Matching refs:W2

109                                   const SignedLogWeightTpl<T> &w2) {
110 if (!w1.Member() || !w2.Member())
113 bool s2 = w2.Value1().Value() > 0.0;
115 T f2 = w2.Value2().Value();
117 return w2;
131 w2.Value1(), (f2 - log(1.0F - exp(f2 - f1))));
136 w2.Value1(), (f1 - log(1.0F + exp(f1 - f2))));
146 const SignedLogWeightTpl<T> &w2) {
147 SignedLogWeightTpl<T> minus_w2(-w2.Value1().Value(), w2.Value2());
153 const SignedLogWeightTpl<T> &w2) {
154 if (!w1.Member() || !w2.Member())
157 bool s2 = w2.Value1().Value() > 0.0;
159 T f2 = w2.Value2().Value();
168 const SignedLogWeightTpl<T> &w2,
170 if (!w1.Member() || !w2.Member())
173 bool s2 = w2.Value1().Value() > 0.0;
175 T f2 = w2.Value2().Value();
190 const SignedLogWeightTpl<T> &w2,
193 bool s2 = w2.Value1().Value() > 0.0;
195 return ApproxEqual(w1.Value2(), w2.Value2(), delta);
198 && w2.Value2() == LogWeightTpl<T>::Zero();
204 const SignedLogWeightTpl<T> &w2) {
206 bool s2 = w2.Value1().Value() > 0.0;
208 return w1.Value2() == w2.Value2();
211 (w2.Value2() == LogWeightTpl<T>::Zero());
224 template <class W1, class W2>
228 << W1::Type() << "\" to \"" << W2::Type();