shogun-toolbox / shogun

Shōgun
http://shogun-toolbox.org
BSD 3-Clause "New" or "Revised" License
3.03k stars 1.04k forks source link

Matlab bindings? #2592

Open karlnapf opened 10 years ago

karlnapf commented 10 years ago

In order to reduce Shogun's complexity, it might be a good idea to drop the static interfaces (they have a long tail of tests, scripts, etc that make Shogun hard to overview). All but a single language are supported via the modular interfaces. The latter are way easier to maintain than the static ones for various reasons.

However, Shogun's Matlab support is only via static interfaces, and since SWIG does not support Matlab, we would loose the interface, which is unacceptable.

Possible solutions:

Matlab via Java

It seems to be possible to call Java code from Matlab. Since we support Java modular, that might be a way. Somebody would have to prototype a single example. See for example http://www.mathworks.com/matlabcentral/answers/99993-how-do-i-call-a-simple-hello-world-java-program-in-matlab

SWIG and Matlab

An even better approach might be to help the SWIG team to get Matlab support running. This would solve all our problems straight as Matlab would just be another language for Shogun. See https://github.com/jaeandersson/swig/commits/matlab

karlnapf commented 7 years ago

Swig and matlab is the way to go, see https://github.com/shogun-toolbox/shogun/wiki/GSoC_2017_project_swig