piratepieter/cljmex
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
cljmex, Copyright (C) 2009-2012, Stefan Sommer ([email protected]) https://github.com/nefan/cljmex -------------------------------------------------------------------------------- This file is part of cljmex. cljmex is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cljmex is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with cljmex. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------------- # cljmex MATLAB Mex file generator The project website is https://github.com/nefan/cljmex Stefan Sommer ([email protected]), November 2012. ## Usage Instead of writing ugly C-code yourself to pass data between MATLAB and mex-files, you write a short clojure file. Executing the clojure file then produces a header file with macros for passing the data back and forth. The C-part of the corresponding mex-file will then look like: #include "mexfile.cljmex.hpp" cljmex_start() // regular C-code ... cljmex_end() See also the examples files in the examples/ directory. ## License Everything here is GPL. ## Installation Confer the INSTALL file. ## Documentation For now, look at the files in the examples/ directory. cljmex contains more parameters and input/output formats than used in the examples. More will be added as needed, and, eventually, the available parameters may be documented. It's very easy to add new functionality (thanks, clojure), so feel free to send me a patch or an email with a wish list. ## News November 2012: project started.