Source Code Distribution (SCD)

ffnet SCD is the source code of a Fast and Flexible software
library for single-hidden-layer neural NETworks. ffnet uses 
the Numerical Recipes in C (NRC) library, but the source code 
of ffnet does not contain any copyrighted portions of NRC, 
except some isolated lines that are corrected by a patch file.
Permission for the distribution of this patch file under the 
GNU library GPL is explicitely granted by Numerical Recipes 
Software.

To build the R version

1. To install the SCD of ffnet, you need the source code of NRC.
   It can be obtained from "http://www.nr.com/".
2. cd src/
   cp -f Makefile-R.src Makefile
3. Edit the Makefile in the src/ directory and make the appropriate
   changes. Usually no changes must be made.
4. cd ../../
   R INSTALL -l libdir ffnet/

To build the c version

1. To install the SCD of ffnet, you need the source code of NRC.
   It can be obtained from "http://www.nr.com/".
2. cd src/
   cp -f Makefile-c.src Makefile
3. Edit the Makefile in the src/ directory and make the appropriate
   changes. Usually no changes must be made.
4. make 
5. make test
   "diff result.new result.orig" should not produce any output,
   except minor numerical differences between the two files.
   Note, that "result.orig" was produced with the compiler
   option -O2. The use of another optimization stage or even 
   another compiler (see README) yields different results! 
6. To use ffnet in C/C++, see example.cc
   

Binary Code Distribution (BCD) for Linux

ffnet BCD has as some NRC routines bound inside. However, the NRC 
routines are not separable, nor callable from the library and they 
are not visible to the user as separately invokable entities. Hence,
Numerical Recipes Software grants automatic permission for this kind 
of redistribution under the GNU library GPL.

To build the R version

1. cd src/
   cp -f Makefile-R.bin Makefile
2. goto SCD 4.

To build the c version

1. cd src/
   cp -f Makefile-c.bin Makefile
2. goto SCD 3.




