Update of /cvsroot/pure-data/externals/ann/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25973
Modified Files: ann.c ann_som.c Log Message: code cleanup
Index: ann.c =================================================================== RCS file: /cvsroot/pure-data/externals/ann/src/ann.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ann.c 14 Oct 2002 17:16:51 -0000 1.1.1.1 --- ann.c 12 Apr 2005 13:27:42 -0000 1.2 *************** *** 32,36 **** }
! void ann_som_setup();
/* --- 32,36 ---- }
! void ann_som_setup(void);
/*
Index: ann_som.c =================================================================== RCS file: /cvsroot/pure-data/externals/ann/src/ann_som.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ann_som.c 21 Jul 2003 15:53:55 -0000 1.4 --- ann_som.c 12 Apr 2005 13:27:42 -0000 1.5 *************** *** 106,115 ****
for (i=0; i<x->num_neurons; i++) { ! int x1 = (i%x->num_neurX), y1 = (i/x->num_neurX); x->dist[i]=(t_float *)getbytes(x->num_neurons * sizeof(t_float));
for (j=0; j<x->num_neurons; j++) { ! int x2 = (j%x->num_neurX), y2 = (j/x->num_neurX); ! x->dist[i][j] = sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)); } } --- 106,115 ----
for (i=0; i<x->num_neurons; i++) { ! int X1 = (i%x->num_neurX), Y1 = (i/x->num_neurX); x->dist[i]=(t_float *)getbytes(x->num_neurons * sizeof(t_float));
for (j=0; j<x->num_neurons; j++) { ! int X2 = (j%x->num_neurX), Y2 = (j/x->num_neurX); ! x->dist[i][j] = sqrt((X1-X2)*(X1-X2)+(Y1-Y2)*(Y1-Y2)); } } *************** *** 180,184 **** /* ----------------- public functions ---------------------- */
! static void som_list(t_som *x, t_symbol *s, int argc, t_atom *argv) { /* present the data */ int i = x->num_sensors; --- 180,184 ---- /* ----------------- public functions ---------------------- */
! static void som_list(t_som *x, t_symbol *sl, int argc, t_atom *argv) { /* present the data */ int i = x->num_sensors;