Lines Matching refs:SparsePowerWeight

80 class SparsePowerWeight : public SparseTupleWeight<W, K> {
88 typedef SparsePowerWeight<typename W::ReverseWeight, K> ReverseWeight;
90 SparsePowerWeight() {} in SparsePowerWeight() function
92 SparsePowerWeight(const SparseTupleWeight<W, K> &w) : in SparsePowerWeight() function
96 SparsePowerWeight(Iterator begin, Iterator end) : in SparsePowerWeight() function
99 SparsePowerWeight(const K &key, const W &w) : in SparsePowerWeight() function
102 static const SparsePowerWeight<W, K> &Zero() { in Zero()
103 static const SparsePowerWeight<W, K> zero(SparseTupleWeight<W, K>::Zero()); in Zero()
107 static const SparsePowerWeight<W, K> &One() { in One()
108 static const SparsePowerWeight<W, K> one(SparseTupleWeight<W, K>::One()); in One()
112 static const SparsePowerWeight<W, K> &NoWeight() { in NoWeight()
113 static const SparsePowerWeight<W, K> no_weight( in NoWeight()
139 SparsePowerWeight<W, K> Quantize(float delta = kDelta) const {
150 inline SparsePowerWeight<W, K> Plus(const SparsePowerWeight<W, K> &w1, in Plus()
151 const SparsePowerWeight<W, K> &w2) { in Plus()
152 SparsePowerWeight<W, K> ret; in Plus()
160 inline SparsePowerWeight<W, K> Times(const SparsePowerWeight<W, K> &w1, in Times()
161 const SparsePowerWeight<W, K> &w2) { in Times()
162 SparsePowerWeight<W, K> ret; in Times()
170 inline SparsePowerWeight<W, K> Divide(const SparsePowerWeight<W, K> &w1,
171 const SparsePowerWeight<W, K> &w2,
173 SparsePowerWeight<W, K> ret;
181 inline const W& DotProduct(const SparsePowerWeight<W, K> &w1, in DotProduct()
182 const SparsePowerWeight<W, K> &w2) { in DotProduct()
183 const SparsePowerWeight<W, K>& product = Times(w1, w2); in DotProduct()
192 inline bool ApproxEqual(const SparsePowerWeight<W, K> &w1,
193 const SparsePowerWeight<W, K> &w2,
198 return ret == SparsePowerWeight<W, K>::One();
202 inline SparsePowerWeight<W, K> Times(const W &k, in Times()
203 const SparsePowerWeight<W, K> &w2) { in Times()
204 SparsePowerWeight<W, K> w1(k); in Times()
209 inline SparsePowerWeight<W, K> Times(const SparsePowerWeight<W, K> &w1, in Times()
211 SparsePowerWeight<W, K> w2(k); in Times()
216 inline SparsePowerWeight<W, K> Divide(const SparsePowerWeight<W, K> &w1,
219 SparsePowerWeight<W, K> w2(k);