Lines Matching refs:weight
31 #include "fst/lib/factor-weight.h"
60 typedef typename Arc::Weight Weight;
63 vector<Weight> *distance,
68 // Compute arcs and final weight for state 's'
74 // Returns final weight of expanded state.
75 const Weight &Final() const { return final_; }
117 vector<Weight> *distance_;
130 Weight final_; // Final weight of state being expanded
140 final_ = Weight::Zero();
155 arc.weight = Times((*distance_)[state], arc.weight);
172 Weight &w = arcs_[((*it).second).second].weight;
173 w = Plus(w, arc.weight);
203 vector<typename Arc::Weight> *distance,
206 typedef typename Arc::Weight Weight;
290 typedef typename Arc::Weight Weight;
293 vector<Weight> distance;
327 typedef typename A::Weight Weight;
356 Weight Final(StateId s) {
400 vector<Weight> distance_;
433 typedef typename A::Weight Weight;
451 virtual Weight Final(StateId s) const { return impl_->Final(s); }