next up previous contents index
Next: Example: Up: Including the Compiled Previous: Including the Compiled


All generated networks may be called as C functions. This functions have the form:
int function-name(float *in, float *out, int init) where in and out are pointers to the input and output arrays of the network. The init flag is needed by some network types and it's special meaning is explained in gif. The function normally returns the value 0 (OK). Other return values are explained in section gif.

The generated C-source can be compiled separately. To use the network it's necessary to include the generated header file (*.h) which is also written by SNNS2C. This header file contains a prototype of the generated function and a record which contains the number of input and output units also.
Tue Nov 28 10:30:44 MET 1995