Added ExactInf class for doing brute force exact inference...
[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 #include <dai/properties.h>
29 #include <dai/exactinf.h>
30 #ifdef WITH_BP
31 #include <dai/bp.h>
32 #endif
33 #ifdef WITH_MF
34 #include <dai/mf.h>
35 #endif
36 #ifdef WITH_HAK
37 #include <dai/hak.h>
38 #endif
39 #ifdef WITH_LC
40 #include <dai/lc.h>
41 #endif
42 #ifdef WITH_TREEEP
43 #include <dai/treeep.h>
44 #endif
45 #ifdef WITH_JTREE
46 #include <dai/jtree.h>
47 #endif
48 #ifdef WITH_MR
49 #include <dai/mr.h>
50 #endif
51
52
53 namespace dai {
54
55
56 /// newInfAlg constructs a new approximate inference algorithm named name for the
57 /// FactorGraph fg with optionts opts and returns a pointer to the new object.
58 /// The caller needs to delete it (maybe some sort of smart_ptr might be useful here).
59 InfAlg *newInfAlg( const std::string &name, const FactorGraph &fg, const PropertySet &opts );
60
61
62 /// DAINames contains the names of all approximate inference algorithms
63
64 static const char* DAINames[] = {
65 ExactInf::Name,
66 #ifdef WITH_BP
67 BP::Name,
68 #endif
69 #ifdef WITH_MF
70 MF::Name,
71 #endif
72 #ifdef WITH_HAK
73 HAK::Name,
74 #endif
75 #ifdef WITH_LC
76 LC::Name,
77 #endif
78 #ifdef WITH_TREEEP
79 TreeEP::Name,
80 #endif
81 #ifdef WITH_JTREE
82 JTree::Name,
83 #endif
84 #ifdef WITH_MR
85 MR::Name,
86 #endif
87 ""
88 };
89
90
91 } // end of namespace dai
92
93
94 #endif