Lines Matching refs:ExpectationWeight
49 class ExpectationWeight : public PairWeight<X1, X2> {
61 typedef ExpectationWeight<typename X1::ReverseWeight,
64 ExpectationWeight() : PairWeight<X1, X2>(Zero()) { } in ExpectationWeight() function
66 ExpectationWeight(const ExpectationWeight<X1, X2>& w) in ExpectationWeight() function
69 ExpectationWeight(const PairWeight<X1, X2>& w) in ExpectationWeight() function
72 ExpectationWeight(const X1& x1, const X2& x2) in ExpectationWeight() function
75 static const ExpectationWeight<X1, X2> &Zero() { in Zero()
76 static const ExpectationWeight<X1, X2> zero(X1::Zero(), X2::Zero()); in Zero()
80 static const ExpectationWeight<X1, X2> &One() { in One()
81 static const ExpectationWeight<X1, X2> one(X1::One(), X2::Zero()); in One()
85 static const ExpectationWeight<X1, X2> &NoWeight() { in NoWeight()
86 static const ExpectationWeight<X1, X2> no_weight(X1::NoWeight(), in NoWeight()
117 inline ExpectationWeight<X1, X2> Plus(const ExpectationWeight<X1, X2> &w, in Plus()
118 const ExpectationWeight<X1, X2> &v) { in Plus()
119 return ExpectationWeight<X1, X2>(Plus(w.Value1(), v.Value1()), in Plus()
125 inline ExpectationWeight<X1, X2> Times(const ExpectationWeight<X1, X2> &w, in Times()
126 const ExpectationWeight<X1, X2> &v) { in Times()
127 return ExpectationWeight<X1, X2>(Times(w.Value1(), v.Value1()), in Times()
133 inline ExpectationWeight<X1, X2> Divide(const ExpectationWeight<X1, X2> &w,
134 const ExpectationWeight<X1, X2> &v,
137 return ExpectationWeight<X1, X2>::NoWeight();