Changeset 104 for cpp/gdk/neurotest.cpp


Ignore:
Timestamp:
07/23/13 18:15:30 (11 years ago)
Author:
sz
Message:

introducing object de/serialization - see serialtest.cpp
the core GDK classes can be now used in multiple threads (ifdef MULTITHREADED)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/gdk/neurotest.cpp

    r70 r104  
    8080if (!m.getNeuroCount()) {puts("no neural network");return 1;}
    8181printf("%d neurons,",m.getNeuroCount());
    82 NeuroFactory::setImplementation();
    83 NeuroNetImpl *nn=new NeuroNetImpl(m);
     82NeuroFactory neurofac;
     83neurofac.setStandardImplementation();
     84NeuroNetConfig nn_config(&neurofac);
     85NeuroNetImpl *nn=new NeuroNetImpl(m,nn_config);
    8486int i; Neuro *n;
    8587if (!nn->getErrorCount()) printf(" no errors\n");
     
    138140        nn->simulateNeuroNet();
    139141        }
    140 NeuroFactory::freeImplementation();
     142neurofac.freeImplementation();
    141143}
Note: See TracChangeset for help on using the changeset viewer.