summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2012-07-09 12:17:50 -0600
committerMike Buland <mike@xagasoft.com>2012-07-09 12:17:50 -0600
commit49139048717d32e214d725a334b5920c35f7366f (patch)
tree615e1d60026c8b40f5ec71d43e11fc44d25c291e /src
parent3cea9f4fbfe520d443dbaeacfcd8de09fb78125d (diff)
downloadlibneural-49139048717d32e214d725a334b5920c35f7366f.tar.gz
libneural-49139048717d32e214d725a334b5920c35f7366f.tar.bz2
libneural-49139048717d32e214d725a334b5920c35f7366f.tar.xz
libneural-49139048717d32e214d725a334b5920c35f7366f.zip
Neural nets are ready for some testing.
Diffstat (limited to 'src')
-rw-r--r--src/network.h8
-rw-r--r--src/tests/pic.cpp7
2 files changed, 14 insertions, 1 deletions
diff --git a/src/network.h b/src/network.h
index 85d8407..e364459 100644
--- a/src/network.h
+++ b/src/network.h
@@ -3,6 +3,8 @@
3 3
4#include "neural/node.h" 4#include "neural/node.h"
5 5
6#include <bu/string.h>
7
6namespace Neural 8namespace Neural
7{ 9{
8 template<typename sigtype> 10 template<typename sigtype>
@@ -19,7 +21,11 @@ namespace Neural
19 delete pRoot; 21 delete pRoot;
20 } 22 }
21 23
22 24 static Network<sigtype> *fromStr( const Bu::String &sCode )
25 {
26 Network<sigtype> *pNet = new Network<sigtype>();
27 return pNet;
28 }
23 29
24 private: 30 private:
25 Node<sigtype> *pRoot; 31 Node<sigtype> *pRoot;
diff --git a/src/tests/pic.cpp b/src/tests/pic.cpp
new file mode 100644
index 0000000..89bfcaf
--- /dev/null
+++ b/src/tests/pic.cpp
@@ -0,0 +1,7 @@
1#include "neural/network.h"
2
3int main( int argc, char *argv[] )
4{
5 return 0;
6}
7