Lines Matching refs:PowerWeight
39 class PowerWeight : public TupleWeight<W, n> {
47 typedef PowerWeight<typename W::ReverseWeight, n> ReverseWeight;
49 PowerWeight() {} in PowerWeight() function
51 PowerWeight(const TupleWeight<W, n> &w) : TupleWeight<W, n>(w) {} in PowerWeight() function
54 PowerWeight(Iterator begin, Iterator end) : TupleWeight<W, n>(begin, end) {} in PowerWeight() function
56 static const PowerWeight<W, n> &Zero() { in Zero()
57 static const PowerWeight<W, n> zero(TupleWeight<W, n>::Zero()); in Zero()
61 static const PowerWeight<W, n> &One() { in One()
62 static const PowerWeight<W, n> one(TupleWeight<W, n>::One()); in One()
66 static const PowerWeight<W, n> &NoWeight() { in NoWeight()
67 static const PowerWeight<W, n> no_weight(TupleWeight<W, n>::NoWeight()); in NoWeight()
87 PowerWeight<W, n> Quantize(float delta = kDelta) const {
99 inline PowerWeight<W, n> Plus(const PowerWeight<W, n> &w1, in Plus()
100 const PowerWeight<W, n> &w2) { in Plus()
101 PowerWeight<W, n> w; in Plus()
109 inline PowerWeight<W, n> Times(const PowerWeight<W, n> &w1, in Times()
110 const PowerWeight<W, n> &w2) { in Times()
111 PowerWeight<W, n> w; in Times()
119 inline PowerWeight<W, n> Divide(const PowerWeight<W, n> &w1,
120 const PowerWeight<W, n> &w2,
122 PowerWeight<W, n> w;
130 inline PowerWeight<W, n> Times(const W &s, const PowerWeight<W, n> &w) { in Times()
131 PowerWeight<W, n> sw; in Times()
139 inline PowerWeight<W, n> Times(const PowerWeight<W, n> &w, const W &s) { in Times()
140 PowerWeight<W, n> ws; in Times()
148 inline W DotProduct(const PowerWeight<W, n> &w1, in DotProduct()
149 const PowerWeight<W, n> &w2) { in DotProduct()