Home | History | Annotate | Download | only in lib

Lines Matching refs:w1

68 inline bool operator==(const FloatWeight &w1, const FloatWeight &w2) {
71 volatile float v1 = w1.Value();
76 inline bool operator!=(const FloatWeight &w1, const FloatWeight &w2) {
77 return !(w1 == w2);
80 inline bool ApproxEqual(const FloatWeight &w1, const FloatWeight &w2,
82 return w1.Value() <= w2.Value() + delta && w2.Value() <= w1.Value() + delta;
152 inline TropicalWeight Plus(const TropicalWeight &w1,
154 return w1.Value() < w2.Value() ? w1 : w2;
157 inline TropicalWeight Times(const TropicalWeight &w1,
159 float f1 = w1.Value(), f2 = w2.Value();
161 return w1;
168 inline TropicalWeight Divide(const TropicalWeight &w1,
171 float f1 = w1.Value(), f2 = w2.Value();
219 inline LogWeight Plus(const LogWeight &w1, const LogWeight &w2) {
220 float f1 = w1.Value(), f2 = w2.Value();
224 return w1;
231 inline LogWeight Times(const LogWeight &w1, const LogWeight &w2) {
232 float f1 = w1.Value(), f2 = w2.Value();
234 return w1;
241 inline LogWeight Divide(const LogWeight &w1,
244 float f1 = w1.Value(), f2 = w2.Value();