#include #include #include #include #include #include #define EXTERNMLP_GEN #include "mlp_gen.h" #include "mlp_sigmoide.h" /* The following is needed to use the dgels routine from the LAPACK library in Reslin() */ #include "mlp_lapack.h" /***********************************************************/ /* MLP_Out */ /* */ /* computes the output of the Neural Network */ /* inputs: double *rrin = inputs of the MLP */ /* outputs: double *rrout = outputs of the MLP */ /* */ /* Author: J.Schwindling 29-Mar-99 */ /* Modified: J.Schwindling 16-Jul-99 unrolled loops */ /* Modified: J.Schwindling 20-Jul-99 fast sigmoid */ /***********************************************************/ /* extern "C"Dllexport */void MLP_Out(type_pat *rrin, dbl *rrout) { static int i, il, in, j, ilm1, m, mp1; dbl **deriv1; /* input layer */ deriv1 = NET.Deriv1; m = NET.Nneur[0]%4; if(m==0) goto L10; for(j=0;j