projects
/
libdai.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added decimation algorithm DECMAP
[libdai.git]
/
src
/
alldai.cpp
diff --git
a/src/alldai.cpp
b/src/alldai.cpp
index
46a5a39
..
266227f
100644
(file)
--- a/
src/alldai.cpp
+++ b/
src/alldai.cpp
@@
-68,6
+68,10
@@
InfAlg *newInfAlg( const std::string &name, const FactorGraph &fg, const Propert
#ifdef DAI_WITH_CBP
if( name == CBP::Name )
return new CBP (fg, opts);
+#endif
+#ifdef DAI_WITH_DECMAP
+ if( name == DecMAP::Name )
+ return new DecMAP (fg, opts);
#endif
DAI_THROWE(UNKNOWN_DAI_ALGORITHM,"Unknown libDAI algorithm: " + name);
}