Update of /cvsroot/pure-data/externals/ann/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6599
Modified Files:
ann_mlp.c ann_td.c
Log Message:
raised the max.number of inputs/outputs (i needed more of them...)
checks whether max.# IOputs is exceeded (and not just reached)
Index: ann_mlp.c
===================================================================
RCS file: /cvsroot/pure-data/externals/ann/src/ann_mlp.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ann_mlp.c 19 May 2005 14:19:19 -0000 1.4
--- ann_mlp.c 20 May 2005 11:06:37 -0000 1.5
***************
*** 20,25 ****
#define RUN 1
! #define MAXINPUT 100
! #define MAXOUTPUT 100
static t_class *ann_mlp_class;
--- 20,25 ----
#define RUN 1
! #define MAXINPUT 256
! #define MAXOUTPUT 256
static t_class *ann_mlp_class;
***************
*** 76,88 ****
learning_rate = atom_getfloat(argv++);
! if (num_input>=MAXINPUT)
{
! error("too many inputs, maximum allowed is MAXINPUT");
return;
}
! if (num_output>=MAXOUTPUT)
{
! error("too many outputs, maximum allowed is MAXOUTPUT");
return;
}
--- 76,88 ----
learning_rate = atom_getfloat(argv++);
! if (num_input>MAXINPUT)
{
! error("too many inputs, maximum allowed is %d",MAXINPUT);
return;
}
! if (num_output>MAXOUTPUT)
{
! error("too many outputs, maximum allowed is %d", MAXOUTPUT);
return;
}
Index: ann_td.c
===================================================================
RCS file: /cvsroot/pure-data/externals/ann/src/ann_td.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ann_td.c 19 May 2005 14:19:19 -0000 1.4
--- ann_td.c 20 May 2005 11:06:37 -0000 1.5
***************
*** 20,25 ****
#define RUN 1
! #define MAXINPUT 100
! #define MAXOUTPUT 100
static t_class *ann_td_class;
--- 20,25 ----
#define RUN 1
! #define MAXINPUT 256
! #define MAXOUTPUT 256
static t_class *ann_td_class;
***************
*** 109,113 ****
learning_rate = atom_getfloat(argv++);
! if ((num_input * x->frames)>=MAXINPUT)
{
error("too many inputs, maximum allowed is %f", MAXINPUT/x->frames);
--- 109,113 ----
learning_rate = atom_getfloat(argv++);
! if ((num_input * x->frames)>MAXINPUT)
{
error("too many inputs, maximum allowed is %f", MAXINPUT/x->frames);
***************
*** 115,119 ****
}
! if (num_output>=MAXOUTPUT)
{
error("too many outputs, maximum allowed is MAXOUTPUT");
--- 115,119 ----
}
! if (num_output>MAXOUTPUT)
{
error("too many outputs, maximum allowed is MAXOUTPUT");