Re: MatD - Matlab external interface bindings for D

2010-08-23 Thread eles
Hi, Here are two .bat files that help converting an entire folder of .lib files in omf format. A subfolder omf will be created in the current folder. coffimplib needs to be in the current folder, too. The batch file convert_all.bat is destined to be run in the C:

Re: MatD - Matlab external interface bindings for D

2010-08-23 Thread eles
Hello, Here is (attachement) a translation of file mwdebug.h (matd.c.mwdebug). There is a line commented out, specifically: //extern FILE* matGetFp_d(MATFile* ph, const(char)* file, int linenum); since I don't know how to replace the C FILE structure. In principle, module matd.c.mwdebug

Re: MatD - Matlab external interface bindings for D

2010-08-23 Thread Trass3r
Here is (attachement) a translation of file mwdebug.h (matd.c.mwdebug). Thanks for your work but unfortunately I already converted mwdebug.h in the first place. The reason why it isn't committed yet is these functions aren't provided by Matlab's dlls. mwdebug.cpp contains the

Re: MatD - Matlab external interface bindings for D

2010-08-23 Thread Trass3r
I don't know if there is a way to handle all this without string mixins. i.e. something along the lines of mixin(foo( ... /** * Get pointer to dimension array */ const(mwSize)* mxGetDimensions(const(mxArray)* pa); ... )); and foo replaces the function defs with func(...){return

Re: MatD - Matlab external interface bindings for D

2010-08-22 Thread Rainer Schuetze
Hi, I have not tried it with the MatLab libraries, but optlink can only handle libraries in the omf-format. Libraries in other formats are either ignored (in the best case) or cause optlink to exit without error, but also without a generated executable. Trass3r probably used coffimplib

Re: MatD - Matlab external interface bindings for D

2010-08-22 Thread eles
== Quote from Rainer Schuetze (r.sagita...@gmx.de)'s article Hi, I have not tried it with the MatLab libraries, but optlink can only handle libraries in the omf-format. Libraries in other formats are either ignored (in the best case) or cause optlink to exit without error, but also without a

Re: MatD - Matlab external interface bindings for D

2010-08-22 Thread eles
== Quote from Rainer Schuetze (r.sagita...@gmx.de)'s article Hi, I have not tried it with the MatLab libraries, but optlink can only handle libraries in the omf-format. Libraries in other formats are either ignored (in the best case) or cause optlink to exit without error, but also without a

Re: MatD - Matlab external interface bindings for D

2010-08-22 Thread Trass3r
I am interested in using the MatD and mex files in D. Also, if possible, to contribute. Cool :) For the time being, I see that you are distributing a set of win32 .lib with MatD. I tried to compile the mex examples you provided in Linux 64 bit, but dmd failed to link, I think it is because

Re: MatD - Matlab external interface bindings for D

2010-08-21 Thread eles
Hi, I am interested in using the MatD and mex files in D. Also, if possible, to contribute. For the time being, I see that you are distributing a set of win32 .lib with MatD. I tried to compile the mex examples you provided in Linux 64 bit, but dmd failed to link, I think it is because there

MatD - Matlab external interface bindings for D

2010-08-16 Thread Trass3r
I've created some bindings to access Matlab's external interface from D, i.e. manipulating .mat files, accessing the current workspace and creating .mex files. Thought I'd share it: http://bitbucket.org/trass3r/matd/wiki/Home

Re: MatD - Matlab external interface bindings for D

2010-08-16 Thread BCS
Hello Trass3r, I've created some bindings to access Matlab's external interface from D, i.e. manipulating .mat files, accessing the current workspace and creating .mex files. Thought I'd share it: http://bitbucket.org/trass3r/matd/wiki/Home If you are looking for a place to host that I can