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