Searched defs:narcs (Results 1 - 10 of 10) sorted by relevance

/external/openfst/src/include/fst/
H A Dconst-fst.h82 size_t NumArcs(StateId s) const { return states_[s].narcs; }
104 data->narcs = states_[s].narcs;
115 Unsigned narcs; // Number of arcs (per state) member in struct:fst::ConstFstImpl::State
184 states_[s].narcs = 0;
191 ++states_[s].narcs;
373 state.narcs = fst.NumArcs(siter.Value());
377 pos += state.narcs;
H A Dreplace-util.h110 // Replaces Fsts that have at most 'nstates' states, 'narcs' arcs and
113 void ReplaceBySize(size_t nstates, size_t narcs, size_t nnonterms);
139 size_t narcs; // # of arcs member in struct:fst::ReplaceUtil::ReplaceStats
151 narcs(0),
294 ++stats_[i].narcs;
335 stats_[i].narcs += (stats_[j].narcs + 1) * ni; // narcs - 1 + 2 (eps)
478 void ReplaceUtil<Arc>::ReplaceBySize(size_t nstates, size_t narcs, argument
492 stats_[j].narcs <
[all...]
H A Dstate-map.h468 size_t narcs = 0; local
470 if (narcs > 0 && equal_(arcs_[i], arcs_[narcs - 1])) {
471 arcs_[narcs - 1].weight = Plus(arcs_[narcs - 1].weight,
474 arcs_[narcs++] = arcs_[i];
477 arcs_.resize(narcs);
H A Dvector-fst.h99 size_t narcs = 0; local
104 if (i != narcs)
105 arcs[narcs] = arcs[i];
106 ++narcs;
114 arcs.resize(narcs);
152 data->narcs = states_[s]->arcs.size();
153 data->arcs = data->narcs > 0 ? &states_[s]->arcs[0] : 0;
343 int64 narcs; local
344 ReadType(strm, &narcs);
350 impl->ReserveArcs(s, narcs);
550 int64 narcs = fst.NumArcs(s); local
[all...]
H A Daccumulator.h265 ssize_t narcs = 0; local
270 if (++narcs % arc_period_ == 0) {
H A Drandgen.h454 size_t narcs = fst_->NumArcs(rstate.state_id); local
460 if (pos < narcs) { // regular transition
H A Dfst.h430 size_t narcs; // ... and arc count member in struct:fst::ArcIteratorData
468 return data_.base ? data_.base->Done() : i_ >= data_.narcs;
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dconst-fst.h62 size_t NumArcs(StateId s) const { return states_[s].narcs; }
84 data->narcs = states_[s].narcs;
93 uint32 narcs; // Number of arcs (per state) member in struct:fst::ConstFstImpl::State
143 states_[s].narcs = 0;
150 ++states_[s].narcs;
H A Dvector-fst.h93 size_t narcs = 0; local
98 if (i != narcs)
99 arcs[narcs] = arcs[i];
100 ++narcs;
108 arcs.resize(narcs);
146 data->narcs = states_[s]->arcs.size();
147 data->arcs = data->narcs > 0 ? &states_[s]->arcs[0] : 0;
363 int64 narcs; local
364 ReadType(strm, &narcs);
369 impl->ReserveArcs(s, narcs);
432 int64 narcs = state->arcs.size(); local
[all...]
H A Dfst.h307 size_t narcs; // ... and arc count member in struct:fst::ArcIteratorData
339 return data_.base ? data_.base->Done() : i_ >= data_.narcs;

Completed in 536 milliseconds