Changeset 104 for cpp/gdk/neurotest.cpp
- Timestamp:
- 07/23/13 18:15:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/gdk/neurotest.cpp
r70 r104 80 80 if (!m.getNeuroCount()) {puts("no neural network");return 1;} 81 81 printf("%d neurons,",m.getNeuroCount()); 82 NeuroFactory::setImplementation(); 83 NeuroNetImpl *nn=new NeuroNetImpl(m); 82 NeuroFactory neurofac; 83 neurofac.setStandardImplementation(); 84 NeuroNetConfig nn_config(&neurofac); 85 NeuroNetImpl *nn=new NeuroNetImpl(m,nn_config); 84 86 int i; Neuro *n; 85 87 if (!nn->getErrorCount()) printf(" no errors\n"); … … 138 140 nn->simulateNeuroNet(); 139 141 } 140 NeuroFactory::freeImplementation();142 neurofac.freeImplementation(); 141 143 }
Note: See TracChangeset
for help on using the changeset viewer.