-
Notifications
You must be signed in to change notification settings - Fork 4
/
neuroPythonNodes.h
135 lines (115 loc) · 3.29 KB
/
neuroPythonNodes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#ifndef __neuroPythonNodes_h
#define __neuroPythonNodes_h __neuroPythonNodes_h
#include "fullNetworkWithNodes.h"
#include <boost/python.hpp>
using namespace boost::python;
void revealNodesToPython ();
template <class N>
N* nodeFactory1 (double arg1)
{
N* res = new N();
vector <baseType> allParams;
allParams.push_back(arg1);
res->rerouteParams(allParams);return res;
}
template <class N>
N* nodeFactory2 (double arg1, double arg2)
{
N* res = new N();
vector <baseType> allParams;
allParams.push_back(arg1);
allParams.push_back(arg2);
res->rerouteParams(allParams);return res;
}
template <class N>
N* nodeFactory3 (double arg1, double arg2, double arg3)
{
N* res = new N();
vector <baseType> allParams;
allParams.push_back(arg1);
allParams.push_back(arg2);
allParams.push_back(arg3);
res->rerouteParams(allParams);return res;
}
template <class N>
N* nodeFactory4 (double arg1, double arg2, double arg3, double arg4)
{
N* res = new N();
vector <baseType> allParams;
allParams.push_back(arg1);
allParams.push_back(arg2);
allParams.push_back(arg3);
allParams.push_back(arg4);
res->rerouteParams(allParams);return res;
}
template <class N>
N* nodeFactory5 (double arg1, double arg2, double arg3, double arg4, double arg5)
{
N* res = new N();
vector <baseType> allParams;
allParams.push_back(arg1);
allParams.push_back(arg2);
allParams.push_back(arg3);
allParams.push_back(arg4);
allParams.push_back(arg5);
res->rerouteParams(allParams);return res;
}
template <class N>
N* nodeFactory6 (double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
{
N* res = new N();
vector <baseType> allParams;
allParams.push_back(arg1);
allParams.push_back(arg2);
allParams.push_back(arg3);
allParams.push_back(arg4);
allParams.push_back(arg5);
allParams.push_back(arg6);
res->rerouteParams(allParams);return res;
}
template <class N>
N* nodeFactory7 (double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7)
{
N* res = new N();
vector <baseType> allParams;
allParams.push_back(arg1);
allParams.push_back(arg2);
allParams.push_back(arg3);
allParams.push_back(arg4);
allParams.push_back(arg5);
allParams.push_back(arg6);
allParams.push_back(arg7);
res->rerouteParams(allParams);return res;
}
template <class N>
N* nodeFactory8 (double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8)
{
N* res = new N();
vector <baseType> allParams;
allParams.push_back(arg1);
allParams.push_back(arg2);
allParams.push_back(arg3);
allParams.push_back(arg4);
allParams.push_back(arg5);
allParams.push_back(arg6);
allParams.push_back(arg7);
allParams.push_back(arg8);
res->rerouteParams(allParams);return res;
}
template <class N>
N* nodeFactory9 (double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8, double arg9)
{
N* res = new N();
vector <baseType> allParams;
allParams.push_back(arg1);
allParams.push_back(arg2);
allParams.push_back(arg3);
allParams.push_back(arg4);
allParams.push_back(arg5);
allParams.push_back(arg6);
allParams.push_back(arg7);
allParams.push_back(arg8);
allParams.push_back(arg9);
res->rerouteParams(allParams);return res;
}
#endif