Lines Matching refs:LexicographicWeight
40 class LexicographicWeight : public PairWeight<W1, W2> {
52 typedef LexicographicWeight<typename W1::ReverseWeight,
56 LexicographicWeight() {}
58 LexicographicWeight(const PairWeight<W1, W2>& w)
61 LexicographicWeight(W1 w1, W2 w2) : PairWeight<W1, W2>(w1, w2) {
64 FSTERROR() << "LexicographicWeight must "
69 FSTERROR() << "LexicographicWeight must "
75 static const LexicographicWeight<W1, W2> &Zero() {
76 static const LexicographicWeight<W1, W2> zero(PairWeight<W1, W2>::Zero());
80 static const LexicographicWeight<W1, W2> &One() {
81 static const LexicographicWeight<W1, W2> one(PairWeight<W1, W2>::One());
85 static const LexicographicWeight<W1, W2> &NoWeight() {
86 static const LexicographicWeight<W1, W2> no_weight(
104 LexicographicWeight<W1, W2> Quantize(float delta = kDelta) const {
121 inline LexicographicWeight<W1, W2> Plus(const LexicographicWeight<W1, W2> &w,
122 const LexicographicWeight<W1, W2> &v) {
124 return LexicographicWeight<W1, W2>::NoWeight();
135 inline LexicographicWeight<W1, W2> Times(const LexicographicWeight<W1, W2> &w,
136 const LexicographicWeight<W1, W2> &v) {
137 return LexicographicWeight<W1, W2>(Times(w.Value1(), v.Value1()),
142 inline LexicographicWeight<W1, W2> Divide(const LexicographicWeight<W1, W2> &w,
143 const LexicographicWeight<W1, W2> &v,
145 return LexicographicWeight<W1, W2>(Divide(w.Value1(), v.Value1(), typ),