SML# - Resorces/ProgrammingExamples/FFT Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

[[This directory|smlsharp:examples/FFTN/]]
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
  "/home/bochao/iml2prjbase/iml2/doc/casual/liubochao/fftn/fftn.dll"
: {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.