diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/pic.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tests/pic.cpp b/src/tests/pic.cpp index 89bfcaf..95bb523 100644 --- a/src/tests/pic.cpp +++ b/src/tests/pic.cpp | |||
@@ -1,7 +1,33 @@ | |||
1 | #include "neural/network.h" | 1 | #include "neural/network.h" |
2 | #include "neural/column.h" | ||
3 | #include "neural/row.h" | ||
4 | #include "neural/neuron.h" | ||
2 | 5 | ||
3 | int main( int argc, char *argv[] ) | 6 | int main( int argc, char *argv[] ) |
4 | { | 7 | { |
8 | Neural::Column<float> *c = new Neural::Column<float>(); | ||
9 | Neural::Row<float> *r1 = new Neural::Row<float>(); | ||
10 | r1->addNode( new Neural::Neuron<float>() ); | ||
11 | r1->addNode( new Neural::Neuron<float>() ); | ||
12 | r1->addNode( new Neural::Neuron<float>() ); | ||
13 | r1->addNode( new Neural::Neuron<float>() ); | ||
14 | r1->addNode( new Neural::Neuron<float>() ); | ||
15 | c->addNode( r1 ); | ||
16 | Neural::Row<float> *r2 = new Neural::Row<float>(); | ||
17 | r2->addNode( new Neural::Neuron<float>() ); | ||
18 | r2->addNode( new Neural::Neuron<float>() ); | ||
19 | r2->addNode( new Neural::Neuron<float>() ); | ||
20 | r2->addNode( new Neural::Neuron<float>() ); | ||
21 | r2->addNode( new Neural::Neuron<float>() ); | ||
22 | r2->addNode( new Neural::Neuron<float>() ); | ||
23 | r2->addNode( new Neural::Neuron<float>() ); | ||
24 | c->addNode( r2 ); | ||
25 | Neural::Row<float> *r3 = new Neural::Row<float>(); | ||
26 | r3->addNode( new Neural::Neuron<float>() ); | ||
27 | r3->addNode( new Neural::Neuron<float>() ); | ||
28 | r3->addNode( new Neural::Neuron<float>() ); | ||
29 | c->addNode( r3 ); | ||
30 | |||
5 | return 0; | 31 | return 0; |
6 | } | 32 | } |
7 | 33 | ||