GENMEX

Quick uppdate at 14-Sep-1999:
Genmex is an unfinished project with which I have not been able to work as much I would have liked to. In the present form it is not very user friendly. Anyone who still wants to use it for their own need is welcome to.

At least in it's present form it can be used to generate a 'template' C source code for a matlab mex-file which then can be edited to suit ones need. For a more general and automated usage a some kind of user interface for it would be needed.

GENMEX is a utility to automatically generate MATLAB MEX-files that call Fortran (especially NAG) library routines. Take a look at an example on how to use NAG's minimization routine e04dgf from MATLAB. There is also a paper describing the basic principles.

GENMEX is written and tested in SUN Solaris 2.3 environment and depends on way how fortran routines are called from c-language in Solaris. It should however work now on some other platforms too (IRIX, AIX, Linux).

There is a set of documentations for GENMEX written by Grant Keady <keady@maths.uwa.edu.au>, University of Western Australia, available directly from him.

Information on parameters of the NAG-library routines (in file nag_routines.dat) are converted from InterCall-data. InterCall is a 'Mathematica<->numerical library'-interface made by Dr. Terry Robb.

GENMEX is available from here as gzipped tar file genmex.tar.gz. Here is the README.

Some links


Marko Laine <Marko.Laine@Helsinki.FI>
University of Helsinki, Department of Mathematics