Lines Matching refs:ProductWeight
35 class ProductWeight : public PairWeight<W1, W2> {
43 typedef ProductWeight<typename W1::ReverseWeight, typename W2::ReverseWeight>
46 ProductWeight() {} in ProductWeight() function
48 ProductWeight(const PairWeight<W1, W2>& w) : PairWeight<W1, W2>(w) {} in ProductWeight() function
50 ProductWeight(W1 w1, W2 w2) : PairWeight<W1, W2>(w1, w2) {} in ProductWeight() function
52 static const ProductWeight<W1, W2> &Zero() { in Zero()
53 static const ProductWeight<W1, W2> zero(PairWeight<W1, W2>::Zero()); in Zero()
57 static const ProductWeight<W1, W2> &One() { in One()
58 static const ProductWeight<W1, W2> one(PairWeight<W1, W2>::One()); in One()
62 static const ProductWeight<W1, W2> &NoWeight() { in NoWeight()
63 static const ProductWeight<W1, W2> no_weight( in NoWeight()
80 ProductWeight<W1, W2> Quantize(float delta = kDelta) const {
92 inline ProductWeight<W1, W2> Plus(const ProductWeight<W1, W2> &w, in Plus()
93 const ProductWeight<W1, W2> &v) { in Plus()
94 return ProductWeight<W1, W2>(Plus(w.Value1(), v.Value1()), in Plus()
99 inline ProductWeight<W1, W2> Times(const ProductWeight<W1, W2> &w, in Times()
100 const ProductWeight<W1, W2> &v) { in Times()
101 return ProductWeight<W1, W2>(Times(w.Value1(), v.Value1()), in Times()
106 inline ProductWeight<W1, W2> Divide(const ProductWeight<W1, W2> &w,
107 const ProductWeight<W1, W2> &v,
109 return ProductWeight<W1, W2>(Divide(w.Value1(), v.Value1(), typ),