Lines Matching refs:w2
109 const SignedLogWeightTpl<T> &w2) { in Plus() argument
110 if (!w1.Member() || !w2.Member()) in Plus()
113 bool s2 = w2.Value1().Value() > 0.0; in Plus()
115 T f2 = w2.Value2().Value(); in Plus()
117 return w2; in Plus()
131 w2.Value1(), (f2 - log(1.0F - exp(f2 - f1)))); in Plus()
136 w2.Value1(), (f1 - log(1.0F + exp(f1 - f2)))); in Plus()
146 const SignedLogWeightTpl<T> &w2) { in Minus() argument
147 SignedLogWeightTpl<T> minus_w2(-w2.Value1().Value(), w2.Value2()); in Minus()
153 const SignedLogWeightTpl<T> &w2) { in Times() argument
154 if (!w1.Member() || !w2.Member()) in Times()
157 bool s2 = w2.Value1().Value() > 0.0; in Times()
159 T f2 = w2.Value2().Value(); in Times()
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());