Calling an FFT function written in C

This directory contains an example SML# code that calls a fast-fourier transform function written in C. Basically, the SML# code just binds the C function (prepared as a DLL) by one line

val fftn = _external "fftnCalc" of
: {RealArray.array, RealArray.array, int, int} -> int

and then call it as an ordinary SML# function. No special preparation is needed.

In this way, one can write a C FFT (or whatever) function of your choice, make it as a dll, and call it from SML#!

For your convenience, the above directory also includes a sub-directory containing a GNU-licensed C FFT package (by R. C. Singleton (Stanford Research Institute, Sept. 1968) which has been converted into C code (7/26/95 by John Beale)). For more details of the C FFT package, see README and other supporting document in this sub-directory.

Last modified:2006/03/27 00:32:31