1 /* This file is part of libDAI - http://www.libdai.org/
3 * libDAI is licensed under the terms of the GNU General Public License version
4 * 2, or (at your option) any later version. libDAI is distributed without any
5 * warranty. See the file COPYING for more details.
7 * Copyright (C) 2006-2009 Joris Mooij [joris dot mooij at libdai dot org]
8 * Copyright (C) 2006-2007 Radboud University Nijmegen, The Netherlands
13 /// \brief Defines some utility functions for interfacing with MatLab
16 #ifndef __defined_libdai_matlab_h
17 #define __defined_libdai_matlab_h
21 #include <dai/factor.h>
33 /// Convert vector<Factor> structure to a cell vector of CPTAB-like structs
34 mxArray
*Factors2mx(const std::vector
<Factor
> &Ps
);
36 /// Convert cell vector of CPTAB-like structs to vector<Factor>
37 std::vector
<Factor
> mx2Factors(const mxArray
*psi
, long verbose
);
39 /// Convert CPTAB-like struct to Factor
40 Factor
mx2Factor(const mxArray
*psi
);
43 } // end of namespace dai