Lines Matching refs:w1
110 inline bool operator==(const FloatWeightTpl<T> &w1,
114 volatile T v1 = w1.Value();
119 inline bool operator==(const FloatWeightTpl<double> &w1,
121 return operator==<double>(w1, w2);
124 inline bool operator==(const FloatWeightTpl<float> &w1,
126 return operator==<float>(w1, w2);
130 inline bool operator!=(const FloatWeightTpl<T> &w1,
132 return !(w1 == w2);
135 inline bool operator!=(const FloatWeightTpl<double> &w1,
137 return operator!=<double>(w1, w2);
140 inline bool operator!=(const FloatWeightTpl<float> &w1,
142 return operator!=<float>(w1, w2);
146 inline bool ApproxEqual(const FloatWeightTpl<T> &w1,
149 return w1.Value() <= w2.Value() + delta && w2.Value() <= w1.Value() + delta;
239 inline TropicalWeightTpl<T> Plus(const TropicalWeightTpl<T> &w1, in Plus() argument
241 if (!w1.Member() || !w2.Member()) in Plus()
243 return w1.Value() < w2.Value() ? w1 : w2; in Plus()
246 inline TropicalWeightTpl<float> Plus(const TropicalWeightTpl<float> &w1, in Plus() argument
248 return Plus<float>(w1, w2); in Plus()
251 inline TropicalWeightTpl<double> Plus(const TropicalWeightTpl<double> &w1, in Plus() argument
253 return Plus<double>(w1, w2); in Plus()
257 inline TropicalWeightTpl<T> Times(const TropicalWeightTpl<T> &w1, in Times() argument
259 if (!w1.Member() || !w2.Member()) in Times()
261 T f1 = w1.Value(), f2 = w2.Value(); in Times()
263 return w1; in Times()
270 inline TropicalWeightTpl<float> Times(const TropicalWeightTpl<float> &w1, in Times() argument
272 return Times<float>(w1, w2); in Times()
275 inline TropicalWeightTpl<double> Times(const TropicalWeightTpl<double> &w1, in Times() argument
277 return Times<double>(w1, w2); in Times()
281 inline TropicalWeightTpl<T> Divide(const TropicalWeightTpl<T> &w1,
284 if (!w1.Member() || !w2.Member())
286 T f1 = w1.Value(), f2 = w2.Value();
295 inline TropicalWeightTpl<float> Divide(const TropicalWeightTpl<float> &w1,
298 return Divide<float>(w1, w2, typ);
301 inline TropicalWeightTpl<double> Divide(const TropicalWeightTpl<double> &w1,
304 return Divide<double>(w1, w2, typ);
368 inline LogWeightTpl<T> Plus(const LogWeightTpl<T> &w1, in Plus() argument
370 T f1 = w1.Value(), f2 = w2.Value(); in Plus()
374 return w1; in Plus()
381 inline LogWeightTpl<float> Plus(const LogWeightTpl<float> &w1, in Plus() argument
383 return Plus<float>(w1, w2); in Plus()
386 inline LogWeightTpl<double> Plus(const LogWeightTpl<double> &w1, in Plus() argument
388 return Plus<double>(w1, w2); in Plus()
392 inline LogWeightTpl<T> Times(const LogWeightTpl<T> &w1, in Times() argument
394 if (!w1.Member() || !w2.Member()) in Times()
396 T f1 = w1.Value(), f2 = w2.Value(); in Times()
398 return w1; in Times()
405 inline LogWeightTpl<float> Times(const LogWeightTpl<float> &w1, in Times() argument
407 return Times<float>(w1, w2); in Times()
410 inline LogWeightTpl<double> Times(const LogWeightTpl<double> &w1, in Times() argument
412 return Times<double>(w1, w2); in Times()
416 inline LogWeightTpl<T> Divide(const LogWeightTpl<T> &w1,
419 if (!w1.Member() || !w2.Member())
421 T f1 = w1.Value(), f2 = w2.Value();
430 inline LogWeightTpl<float> Divide(const LogWeightTpl<float> &w1,
433 return Divide<float>(w1, w2, typ);
436 inline LogWeightTpl<double> Divide(const LogWeightTpl<double> &w1,
439 return Divide<double>(w1, w2, typ);
501 const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) { in Plus() argument
502 if (!w1.Member() || !w2.Member()) in Plus()
504 return w1.Value() < w2.Value() ? w1 : w2; in Plus()
508 const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) { in Plus() argument
509 return Plus<float>(w1, w2); in Plus()
513 const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) { in Plus() argument
514 return Plus<double>(w1, w2); in Plus()
520 const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) { in Times() argument
521 if (!w1.Member() || !w2.Member()) in Times()
523 return w1.Value() >= w2.Value() ? w1 : w2; in Times()
527 const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) { in Times() argument
528 return Times<float>(w1, w2); in Times()
532 const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) { in Times() argument
533 return Times<double>(w1, w2); in Times()
538 inline MinMaxWeightTpl<T> Divide(const MinMaxWeightTpl<T> &w1,
541 if (!w1.Member() || !w2.Member())
544 return w1.Value() >= w2.Value() ? w1 : FloatLimits<T>::kNumberBad;
547 inline MinMaxWeightTpl<float> Divide(const MinMaxWeightTpl<float> &w1,
550 return Divide<float>(w1, w2, typ);
553 inline MinMaxWeightTpl<double> Divide(const MinMaxWeightTpl<double> &w1,
556 return Divide<double>(w1, w2, typ);