Merge branch 'no-edges2'
[libdai.git] / include / dai / alldai.h
1 /* Copyright (C) 2006-2008 Joris Mooij [j dot mooij at science dot ru dot nl]
2 Radboud University Nijmegen, The Netherlands
3
4 This file is part of libDAI.
5
6 libDAI is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 libDAI is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with libDAI; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21
22 #ifndef __defined_libdai_alldai_h
23 #define __defined_libdai_alldai_h
24
25
26 #include <string>
27 #include <dai/daialg.h>
28 #ifdef WITH_BP
29 #include <dai/bp.h>
30 #endif
31 #ifdef WITH_MF
32 #include <dai/mf.h>
33 #endif
34 #ifdef WITH_HAK
35 #include <dai/hak.h>
36 #endif
37 #ifdef WITH_LC
38 #include <dai/lc.h>
39 #endif
40 #ifdef WITH_TREEEP
41 #include <dai/treeep.h>
42 #endif
43 #ifdef WITH_JTREE
44 #include <dai/jtree.h>
45 #endif
46 #ifdef WITH_MR
47 #include <dai/mr.h>
48 #endif
49
50
51 namespace dai {
52
53
54 /// newInfAlg constructs a new approximate inference algorithm named name for the
55 /// FactorGraph fg with optionts opts and returns a pointer to the new object.
56 /// The caller needs to delete it (maybe some sort of smart_ptr might be useful here).
57 InfAlg *newInfAlg( const std::string &name, const FactorGraph &fg, const Properties &opts );
58
59
60 /// DAINames contains the names of all approximate inference algorithms
61
62 static const char* DAINames[] = {
63 #ifdef WITH_BP
64 BP::Name,
65 #endif
66 #ifdef WITH_MF
67 MF::Name,
68 #endif
69 #ifdef WITH_HAK
70 HAK::Name,
71 #endif
72 #ifdef WITH_LC
73 LC::Name,
74 #endif
75 #ifdef WITH_TREEEP
76 TreeEP::Name,
77 #endif
78 #ifdef WITH_JTREE
79 JTree::Name,
80 #endif
81 #ifdef WITH_MR
82 MR::Name,
83 #endif
84 ""
85 };
86
87
88 } // end of namespace dai
89
90
91 #endif