Searched refs:fst (Results 1 - 25 of 87) sorted by relevance

1234

/external/ipsec-tools/src/racoon/missing/crypto/rijndael/
H A Drijndael.h5 #include <crypto/rijndael/rijndael-api-fst.h>
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dstatesort.h24 #include "fst/lib/mutable-fst.h"
26 namespace fst { namespace
31 // (1, 2, ..., fst->NumStates() - 1).
33 void StateSort(MutableFst<Arc> *fst, argument
38 CHECK_EQ(order.size(), fst->NumStates());
40 if (fst->Start() == kNoStateId)
43 uint64 props = fst->Properties(kStateSortProperties, false);
49 fst->SetStart(order[fst
[all...]
H A Dreweight.h23 #include "fst/lib/mutable-fst.h"
25 namespace fst { namespace
39 void Reweight(MutableFst<Arc> *fst, vector<typename Arc::Weight> potential, argument
43 if (!fst->NumStates())
45 while ( (int64)potential.size() < (int64)fst->NumStates())
58 for (StateIterator< MutableFst<Arc> > sit(*fst);
62 for (MutableArcIterator< MutableFst<Arc> > ait(fst, state);
81 fst->SetFinal(state,
82 Divide(fst
[all...]
H A Dclosure.h22 #include "fst/lib/mutable-fst.h"
23 #include "fst/lib/rational.h"
25 namespace fst { namespace
39 void Closure(MutableFst<Arc> *fst, ClosureType closure_type) { argument
44 uint64 props = fst->Properties(kFstProperties, false);
45 StateId start = fst->Start();
46 for (StateIterator< MutableFst<Arc> > siter(*fst);
50 Weight final = fst->Final(s);
52 fst
68 Closure(RationalFst<Arc> *fst, ClosureType closure_type) argument
102 ClosureFst(const Fst<A> &fst, ClosureType closure_type) argument
106 ClosureFst(const Fst<A> &fst, const ClosureFstOptions &opts) argument
111 ClosureFst(const ClosureFst<A> &fst) argument
121 StateIterator(const ClosureFst<A> &fst) argument
132 ArcIterator(const ClosureFst<A> &fst, StateId s) argument
[all...]
H A Drmfinalepsilon.h25 #include "fst/lib/connect.h"
26 #include "fst/lib/mutable-fst.h"
28 namespace fst { namespace
31 void RmFinalEpsilon(MutableFst<A>* fst) { argument
40 DfsVisit(*fst, &scc_visitor);
46 for (StateIterator<Fst<A> > siter(*fst); !siter.Done(); siter.Next()) {
48 if (fst->Final(s) != Weight::Zero()) {
50 for (ArcIterator<Fst<A> > aiter(*fst, s); !aiter.Done(); aiter.Next()) {
65 for (StateIterator<Fst<A> > siter(*fst); !site
[all...]
H A Dinvert.h22 #include "fst/lib/map.h"
23 #include "fst/lib/mutable-fst.h"
25 namespace fst { namespace
49 void Invert(MutableFst<Arc> *fst) { Map(fst, InvertMapper<Arc>()); } argument
67 explicit InvertFst(const Fst<A> &fst) : MapFst<A, A, C>(fst, C()) {} argument
69 InvertFst(const InvertFst<A> &fst) : MapFst<A, A, C>(fst) {} argument
80 StateIterator(const InvertFst<A> &fst) argument
90 ArcIterator(const InvertFst<A> &fst, typename A::StateId s) argument
[all...]
H A Darcsum.h17 // Functions to sum arcs (sum weights) in an fst.
22 #include "fst/lib/mutable-fst.h"
23 #include "fst/lib/weight.h"
25 namespace fst { namespace
57 void ArcSum(MutableFst<A>* fst) { argument
61 for (StateIterator<Fst<A> > siter(*fst); !siter.Done(); siter.Next()) {
63 if (fst->NumArcs(s) == 0) continue;
67 arcs.reserve(fst->NumArcs(s));
68 for (ArcIterator<Fst<A> > aiter(*fst,
[all...]
H A Dproject.h22 #include "fst/lib/map.h"
23 #include "fst/lib/mutable-fst.h"
25 namespace fst { namespace
63 void Project(MutableFst<Arc> *fst, ProjectType project_type) { argument
64 Map(fst, ProjectMapper<Arc>(project_type));
84 ProjectFst(const Fst<A> &fst, ProjectType project_type) argument
85 : MapFst<A, A, C>(fst, C(project_type)) {}
87 ProjectFst(const ProjectFst<A> &fst) : MapFst<A, A, C>(fst) {} argument
98 StateIterator(const ProjectFst<A> &fst) argument
108 ArcIterator(const ProjectFst<A> &fst, typename A::StateId s) argument
[all...]
H A Dverify.h22 #include "fst/lib/fst.h"
23 #include "fst/lib/test-properties.h"
25 namespace fst { namespace
29 bool Verify(const Fst<Arc> &fst) { argument
34 StateId start = fst.Start();
35 const SymbolTable *isyms = fst.InputSymbols();
36 const SymbolTable *osyms = fst.OutputSymbols();
40 for (StateIterator< Fst<Arc> > siter(fst);
53 for (StateIterator< Fst<Arc> > siter(fst);
[all...]
H A Dexpanded-fst.h1 // expanded-fst.h
22 #include "fst/lib/fst.h"
24 namespace fst { namespace
61 Fst<A> *fst = reader(strm, ropts); local
62 if (!fst) return 0;
63 return down_cast<ExpandedFst<A> *>(fst);
82 typename Arc::StateId CountStates(const Fst<Arc> &fst) { argument
83 if (fst.Properties(kExpanded, false)) {
84 const ExpandedFst<Arc> *efst = down_cast<const ExpandedFst<Arc> *>(&fst);
[all...]
H A Dtopsort.h25 #include "fst/lib/dfs-visit.h"
26 #include "fst/lib/fst.h"
27 #include "fst/lib/statesort.h"
29 namespace fst { namespace
44 void InitVisit(const Fst<A> &fst) { argument
86 bool TopSort(MutableFst<Arc> *fst) { argument
93 DfsVisit(*fst, &top_order_visitor);
96 StateSort(fst, order);
97 fst
[all...]
H A Dminimize.h25 #include "fst/lib/arcsort.h"
26 #include "fst/lib/arcsum.h"
27 #include "fst/lib/connect.h"
28 #include "fst/lib/dfs-visit.h"
29 #include "fst/lib/encode.h"
30 #include "fst/lib/factor-weight.h"
31 #include "fst/lib/fst.h"
32 #include "fst/lib/mutable-fst
38 namespace fst { namespace
58 StateComparator(const Fst<A>& fst, const Partition<typename A::StateId>& partition, int32 flags = kCompareAll) argument
124 CyclicMinimizer(const ExpandedFst<A>& fst) argument
169 PrePartition(const Fst<A>& fst) argument
201 Initialize(const Fst<A>& fst) argument
261 Compute(const Fst<A>& fst) argument
305 AcyclicMinimizer(const ExpandedFst<A>& fst) argument
322 InitVisit(const Fst<A>& fst) argument
379 Initialize(const Fst<A>& fst) argument
393 Refine(const Fst<A>& fst) argument
441 MergeStates( const Partition<typename A::StateId>& partition, MutableFst<A>* fst) argument
474 AcceptorMinimize(MutableFst<A>* fst) argument
514 Minimize(MutableFst<A>* fst, MutableFst<A>* sfst = 0) argument
[all...]
H A Darcsort.h24 #include "fst/lib/cache.h"
25 #include "fst/lib/test-properties.h"
27 namespace fst { namespace
43 void ArcSort(MutableFst<Arc> *fst, Compare comp) { argument
46 uint64 props = fst->Properties(kFstProperties, false);
49 for (StateIterator< MutableFst<Arc> > siter(*fst);
54 for (ArcIterator< MutableFst<Arc> > aiter(*fst, s);
59 fst->DeleteArcs(s);
61 fst->AddArc(s, arcs[a]);
64 fst
90 ArcSortFstImpl(const Fst<A> &fst, const C &comp, const ArcSortFstOptions &opts) argument
196 ArcSortFst(const Fst<A> &fst, const C &comp) argument
199 ArcSortFst(const Fst<A> &fst, const C &comp, const ArcSortFstOptions &opts) argument
202 ArcSortFst(const ArcSortFst<A, C> &fst) argument
267 ArcIterator(const ArcSortFst<A, C> &fst, StateId s) argument
[all...]
H A Ddfs-visit.h24 #include "fst/lib/arcfilter.h"
25 #include "fst/lib/expanded-fst.h"
27 namespace fst { namespace
41 // void InitVisit(const Fst<Arc> &fst);
67 DfsState(const Fst<Arc> &fst, StateId s): state_id(s), arc_iter(fst, s) {} argument
77 void DfsVisit(const Fst<Arc> &fst, V *visitor, ArcFilter filter) { argument
80 visitor->InitVisit(fst);
82 StateId start = fst
158 DfsVisit(const Fst<Arc> &fst, V *visitor) argument
[all...]
H A Darcfilter.h22 namespace fst { namespace
41 } // namespace fst
H A Ddifference.h22 #include "fst/lib/compose.h"
23 #include "fst/lib/complement.h"
25 namespace fst { namespace
79 DifferenceFst(const DifferenceFst<A> &fst) argument
80 : ComposeFst<A>(fst) {}
93 explicit StateIterator(const DifferenceFst<A> &fst) argument
94 : StateIterator< ComposeFst<A> >(fst) {}
105 ArcIterator(const DifferenceFst<A> &fst, StateId s) argument
106 : ArcIterator< ComposeFst<A> >(fst, s) {}
138 } // namespace fst
[all...]
H A Dintersect.h22 #include "fst/lib/compose.h"
24 namespace fst { namespace
71 IntersectFst(const IntersectFst<A> &fst) : ComposeFst<A>(fst) {} argument
84 explicit StateIterator(const IntersectFst<A> &fst) argument
85 : StateIterator< ComposeFst<A> >(fst) {}
96 ArcIterator(const IntersectFst<A> &fst, StateId s) argument
97 : ArcIterator< ComposeFst<A> >(fst, s) {}
128 } // namespace fst
H A Drelabel.h25 #include "fst/lib/cache.h"
26 #include "fst/lib/test-properties.h"
29 namespace fst { namespace
37 // \param fst input fst, must be mutable
43 MutableFst<A> *fst,
49 uint64 props = fst->Properties(kFstProperties, false);
62 for (StateIterator<MutableFst<A> > siter(*fst);
65 for (MutableArcIterator<MutableFst<A> > aiter(fst, s);
83 fst
42 Relabel( MutableFst<A> *fst, const vector<pair<typename A::Label, typename A::Label> >& ipairs, const vector<pair<typename A::Label, typename A::Label> >& opairs) argument
99 Relabel(MutableFst<A> *fst, const SymbolTable* new_isymbols, const SymbolTable* new_osymbols) argument
164 RelabelFstImpl(const Fst<A>& fst, const vector<pair<Label, Label> >& ipairs, const vector<pair<Label, Label> >& opairs, const RelabelFstOptions &opts) argument
191 RelabelFstImpl(const Fst<A>& fst, const SymbolTable* new_isymbols, const SymbolTable* new_osymbols, const RelabelFstOptions &opts) argument
329 RelabelFst(const Fst<A>& fst, const vector<pair<Label, Label> >& ipairs, const vector<pair<Label, Label> >& opairs) argument
334 RelabelFst(const Fst<A>& fst, const vector<pair<Label, Label> >& ipairs, const vector<pair<Label, Label> >& opairs, const RelabelFstOptions &opts) argument
340 RelabelFst(const Fst<A>& fst, const SymbolTable* new_isymbols, const SymbolTable* new_osymbols) argument
346 RelabelFst(const Fst<A>& fst, const SymbolTable* new_isymbols, const SymbolTable* new_osymbols, const RelabelFstOptions &opts) argument
352 RelabelFst(const RelabelFst<A> &fst) argument
414 StateIterator(const RelabelFst<A> &fst) argument
449 ArcIterator(const RelabelFst<A> &fst, StateId s) argument
[all...]
H A Dregister.h0 // fst-register.h
28 #include "fst/lib/compat.h"
34 namespace fst { namespace
45 typedef Fst<A> *(*Converter)(const Fst<A> &fst);
91 string so_file = type + "-fst.so";
136 F fst; local
143 registr->SetEntry(fst.Type(), entry);
147 static Fst<Arc> *Convert(const Fst<Arc> &fst) { return new F(fst); } argument
153 static fst
158 Convert(const Fst<A> &fst, const string &ftype) argument
[all...]
H A Dtest-properties.h26 #include "fst/lib/connect.h"
27 #include "fst/lib/dfs-visit.h"
28 #include "fst/lib/mutable-fst.h"
32 namespace fst { namespace
72 // is used to implement fst.Properties(mask, true).
74 uint64 ComputeProperties(const Fst<Arc> &fst, uint64 mask, uint64 *known, argument
80 uint64 fst_props = fst.Properties(kFstProperties, false); // Fst-stored
105 DfsVisit(fst, &scc_visitor);
121 for (StateIterator< Fst<Arc> > siter(fst);
229 TestProperties(const Fst<Arc> &fst, uint64 mask, uint64 *known) argument
[all...]
/external/srec/srec/include/
H A Dsearch_network.h58 #define ARC_XtoI(ARC) ((arcID)((ARC)-fst->FSMarc_list))
60 #define ARC_ItoX(ARC_ID) (&fst->FSMarc_list[ARC_ID])
62 #define NODE_XtoI(NOD) ((nodeID)((NOD)-fst->FSMnode_list))
64 #define NODE_ItoX(NODE_ID) (&fst->FSMnode_list[NODE_ID])
75 #define TO_NODE(ARC) fst->FSMarc_list[(ARC)].to_node
76 #define NEXT_NODE(NOD) fst->FSMnode_list[(NOD)].un_ptr.next_node
77 #define LINKL_NEXT(ARC) fst->FSMarc_list[(ARC)].linkl_next_arc
78 #define LINKL_PREV(ARC) fst->FSMarc_list[(ARC)].linkl_prev_arc
79 #define FIRST_PREV(NOD) fst->FSMnode_list[(NOD)].first_prev_arc
80 #define FIRST_NEXT(NOD) fst
[all...]
/external/srec/tools/grxmlcompile/
H A Dgrxmlcompile.cpp24 #include "fst/lib/fst.h"
25 #include "fst/lib/fstlib.h"
26 #include "fst/lib/arc.h"
27 #include "fst/lib/fst-decl.h"
28 #include "fst/lib/vector-fst.h"
29 #include "fst/lib/arcsort.h"
30 #include "fst/li
[all...]
/external/svox/pico/lib/
H A Dpicokfst.c249 kfst_SubObj fst = (kfst_SubObj) this; local
250 if (fst != NULL) {
251 return fst->transductionMode;
261 kfst_SubObj fst = (kfst_SubObj) this; local
262 if (fst != NULL) {
263 *nrStates = fst->nrStates;
264 *nrClasses = fst->nrClasses;
282 kfst_SubObj fst = (kfst_SubObj) this; local
285 h = inSym % fst->alphaHashTabSize;
286 pos = fst
316 kfst_SubObj fst = (kfst_SubObj) this; local
350 kfst_SubObj fst = (kfst_SubObj) this; local
370 kfst_SubObj fst = (kfst_SubObj) this; local
393 kfst_SubObj fst = (kfst_SubObj) this; local
424 kfst_SubObj fst = (kfst_SubObj) this; local
[all...]
/external/srec/srec/crec/
H A Dsrec_context.c104 int sprintf_arc(char* buf, srec_context* fst, FSMarc* arc);
105 int printf_arc1(srec_context* fst, char* msg, FSMarc* arc);
106 int printf_node1(srec_context* fst, FSMnode* node);
108 /* fst_* functions are internal fst functions */
109 int fst_add_arcs(srec_context* fst, nodeID start_node, nodeID end_node,
112 int fst_push_arc_olabel(srec_context* fst, FSMarc* arc);
113 int fst_push_arc_cost(srec_context* fst, FSMarc* arc);
114 int fst_pull_arc_olabel(srec_context* fst, FSMarc* arc);
115 int fst_free_arc(srec_context* fst, FSMarc* arc);
116 int fst_free_node(srec_context* fst, FSMnod
883 FST_AttachArbdata(srec_context* fst, srec_arbdata* allophone_tree) argument
919 srec_context* fst = pfst; local
1137 FST_DumpGraph(srec_context* fst, PFile* fp) argument
1187 FST_AddWordToGrammar(srec_context* fst, const char* _slot, const char* word, const char* pron, const int cost) argument
1515 remove_added_arcs_leaving(srec_context* fst, nodeID ni) argument
1541 remove_added_arcs_arriving(srec_context* fst, nodeID ni) argument
1569 FST_ResetGrammar(srec_context* fst) argument
1957 fst_get_free_arc(srec_context* fst) argument
1979 fst_get_free_node(srec_context* fst) argument
1997 fst_free_node(srec_context* fst, FSMnode* node) argument
2008 fst_free_arc(srec_context* fst, FSMarc* arc) argument
2023 fst_free_arc_net(srec_context* fst, FSMarc* arc) argument
2033 fst_push_arc_olabel(srec_context* fst, FSMarc* arc) argument
2063 fst_push_arc_cost(srec_context* fst, FSMarc* arc) argument
2080 fst_pull_arc_olabel(srec_context* fst, FSMarc* arc) argument
2134 find_next_arc_with_ilabel(srec_context* fst, FSMnode* node, labelID ilabel, FSMarc** last) argument
2148 find_prev_arc_with_iolabels(srec_context* fst, FSMnode* node, labelID ilabel, labelID olabel, FSMarc** last) argument
2177 num_arcs_leaving(srec_context* fst, FSMnode* node) argument
2190 num_arcs_arriving(srec_context* fst, FSMnode* node) argument
2203 num_arcs_arriving_gt_1(srec_context* fst, FSMnode* node) argument
2213 remove_arc_arriving(srec_context* fst, FSMnode* to_node, FSMarc* arc) argument
2229 split_node_for_arc(srec_context* fst, FSMarc* arc) argument
2276 fst_add_arcs(srec_context* fst, nodeID start_node, nodeID end_node, wordID add_tree_olabel, costdata add_tree_cost, modelID* add_tree_start, int add_tree_len) argument
2657 append_arc_leaving_node(srec_context* fst, FSMnode* fr_node, FSMarc_ptr arc) argument
2668 append_arc_arriving_node(srec_context* fst, FSMnode* to_node, FSMarc_ptr arc) argument
2681 printf_node1(srec_context* fst, FSMnode* node) argument
2685 printf_arc1(srec_context* fst, char* msg, FSMarc* arc) argument
2692 sprintf_arc(char* buf, srec_context* fst, FSMarc* arc) argument
3268 FST_LoadContextFromImageV2(srec_context* fst, PFile* fp) argument
[all...]
/external/srec/tools/make_cfst/
H A Dmake_cfst.cpp24 #include "fst/lib/fstlib.h"
25 #include "fst/lib/fst-decl.h"
26 #include "fst/lib/vector-fst.h"
27 #include "fst/lib/arcsort.h"
28 #include "fst/lib/invert.h"
29 #include "fst/lib/rmepsilon.h"
38 using namespace fst;
81 fst
[all...]

Completed in 232 milliseconds

1234