• Home
  • Raw
  • Download

Lines Matching refs:w1

113 inline bool operator==(const FloatWeightTpl<T> &w1,
117 volatile T v1 = w1.Value();
122 inline bool operator==(const FloatWeightTpl<double> &w1,
124 return operator==<double>(w1, w2);
127 inline bool operator==(const FloatWeightTpl<float> &w1,
129 return operator==<float>(w1, w2);
133 inline bool operator!=(const FloatWeightTpl<T> &w1,
135 return !(w1 == w2);
138 inline bool operator!=(const FloatWeightTpl<double> &w1,
140 return operator!=<double>(w1, w2);
143 inline bool operator!=(const FloatWeightTpl<float> &w1,
145 return operator!=<float>(w1, w2);
149 inline bool ApproxEqual(const FloatWeightTpl<T> &w1,
152 return w1.Value() <= w2.Value() + delta && w2.Value() <= w1.Value() + delta;
242 inline TropicalWeightTpl<T> Plus(const TropicalWeightTpl<T> &w1, in Plus() argument
244 if (!w1.Member() || !w2.Member()) in Plus()
246 return w1.Value() < w2.Value() ? w1 : w2; in Plus()
249 inline TropicalWeightTpl<float> Plus(const TropicalWeightTpl<float> &w1, in Plus() argument
251 return Plus<float>(w1, w2); in Plus()
254 inline TropicalWeightTpl<double> Plus(const TropicalWeightTpl<double> &w1, in Plus() argument
256 return Plus<double>(w1, w2); in Plus()
260 inline TropicalWeightTpl<T> Times(const TropicalWeightTpl<T> &w1, in Times() argument
262 if (!w1.Member() || !w2.Member()) in Times()
264 T f1 = w1.Value(), f2 = w2.Value(); in Times()
266 return w1; in Times()
273 inline TropicalWeightTpl<float> Times(const TropicalWeightTpl<float> &w1, in Times() argument
275 return Times<float>(w1, w2); in Times()
278 inline TropicalWeightTpl<double> Times(const TropicalWeightTpl<double> &w1, in Times() argument
280 return Times<double>(w1, w2); in Times()
284 inline TropicalWeightTpl<T> Divide(const TropicalWeightTpl<T> &w1,
287 if (!w1.Member() || !w2.Member())
289 T f1 = w1.Value(), f2 = w2.Value();
298 inline TropicalWeightTpl<float> Divide(const TropicalWeightTpl<float> &w1,
301 return Divide<float>(w1, w2, typ);
304 inline TropicalWeightTpl<double> Divide(const TropicalWeightTpl<double> &w1,
307 return Divide<double>(w1, w2, typ);
371 inline LogWeightTpl<T> Plus(const LogWeightTpl<T> &w1, in Plus() argument
373 T f1 = w1.Value(), f2 = w2.Value(); in Plus()
377 return w1; in Plus()
384 inline LogWeightTpl<float> Plus(const LogWeightTpl<float> &w1, in Plus() argument
386 return Plus<float>(w1, w2); in Plus()
389 inline LogWeightTpl<double> Plus(const LogWeightTpl<double> &w1, in Plus() argument
391 return Plus<double>(w1, w2); in Plus()
395 inline LogWeightTpl<T> Times(const LogWeightTpl<T> &w1, in Times() argument
397 if (!w1.Member() || !w2.Member()) in Times()
399 T f1 = w1.Value(), f2 = w2.Value(); in Times()
401 return w1; in Times()
408 inline LogWeightTpl<float> Times(const LogWeightTpl<float> &w1, in Times() argument
410 return Times<float>(w1, w2); in Times()
413 inline LogWeightTpl<double> Times(const LogWeightTpl<double> &w1, in Times() argument
415 return Times<double>(w1, w2); in Times()
419 inline LogWeightTpl<T> Divide(const LogWeightTpl<T> &w1,
422 if (!w1.Member() || !w2.Member())
424 T f1 = w1.Value(), f2 = w2.Value();
433 inline LogWeightTpl<float> Divide(const LogWeightTpl<float> &w1,
436 return Divide<float>(w1, w2, typ);
439 inline LogWeightTpl<double> Divide(const LogWeightTpl<double> &w1,
442 return Divide<double>(w1, w2, typ);
504 const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) { in Plus() argument
505 if (!w1.Member() || !w2.Member()) in Plus()
507 return w1.Value() < w2.Value() ? w1 : w2; in Plus()
511 const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) { in Plus() argument
512 return Plus<float>(w1, w2); in Plus()
516 const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) { in Plus() argument
517 return Plus<double>(w1, w2); in Plus()
523 const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) { in Times() argument
524 if (!w1.Member() || !w2.Member()) in Times()
526 return w1.Value() >= w2.Value() ? w1 : w2; in Times()
530 const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) { in Times() argument
531 return Times<float>(w1, w2); in Times()
535 const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) { in Times() argument
536 return Times<double>(w1, w2); in Times()
541 inline MinMaxWeightTpl<T> Divide(const MinMaxWeightTpl<T> &w1,
544 if (!w1.Member() || !w2.Member())
547 return w1.Value() >= w2.Value() ? w1 : FloatLimits<T>::NumberBad();
550 inline MinMaxWeightTpl<float> Divide(const MinMaxWeightTpl<float> &w1,
553 return Divide<float>(w1, w2, typ);
556 inline MinMaxWeightTpl<double> Divide(const MinMaxWeightTpl<double> &w1,
559 return Divide<double>(w1, w2, typ);