libDAI
include/dai/matlab/matlab.h
Go to the documentation of this file.
00001 /*  This file is part of libDAI - http://www.libdai.org/
00002  *
00003  *  Copyright (c) 2006-2011, The libDAI authors. All rights reserved.
00004  *
00005  *  Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
00006  */
00007 
00008 
00011 
00012 
00013 #ifndef __defined_libdai_matlab_h
00014 #define __defined_libdai_matlab_h
00015 
00016 
00017 #include "mex.h"
00018 #include <dai/factor.h>
00019 
00020 
00021 namespace dai {
00022 
00023 
00024 #ifdef SMALLMEM
00025     typedef int mwSize;
00026     typedef int mwIndex;
00027 #endif
00028 
00029 
00031 mxArray *Factors2mx(const std::vector<Factor> &Ps);
00032 
00034 std::vector<Factor> mx2Factors(const mxArray *psi, long verbose);
00035 
00037 Factor mx2Factor(const mxArray *psi);
00038 
00039 
00040 } // end of namespace dai
00041 
00042 
00043 #endif