00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00014
00015
00016 #ifndef __defined_libdai_matlab_h
00017 #define __defined_libdai_matlab_h
00018
00019
00020 #include "mex.h"
00021 #include <dai/factor.h>
00022
00023
00024 namespace dai {
00025
00026
00027 #ifdef SMALLMEM
00028 typedef int mwSize;
00029 typedef int mwIndex;
00030 #endif
00031
00032
00034 mxArray *Factors2mx(const std::vector<Factor> &Ps);
00035
00037 std::vector<Factor> mx2Factors(const mxArray *psi, long verbose);
00038
00040 Factor mx2Factor(const mxArray *psi);
00041
00042
00043 }
00044
00045
00046 #endif