Skip to content
Snippets Groups Projects
Commit 538ac8b4 authored by Michal Kravcenko's avatar Michal Kravcenko
Browse files

MOD: changed the return type of add_connection_constant

parent f9bbe882
No related branches found
No related tags found
No related merge requests found
......@@ -506,7 +506,7 @@ namespace lib4neuro {
return this->connection_list->size() - 1;
}
void
size_t
NeuralNetwork::add_connection_constant(size_t n1_idx, size_t n2_idx, double weight) {
ConnectionFunctionConstant *con_weight_u1u2 = new ConnectionFunctionConstant( weight );
......@@ -517,6 +517,8 @@ namespace lib4neuro {
this->add_inward_connection(n2_idx, n1_idx, conn_idx);
this->layers_analyzed = false;
return conn_idx;
}
void NeuralNetwork::add_existing_connection(size_t n1_idx, size_t n2_idx, size_t connection_idx,
......
......@@ -279,7 +279,7 @@ namespace lib4neuro {
* @param n2_idx
* @param weight
*/
LIB4NEURO_API void add_connection_constant(size_t n1_idx, size_t n2_idx, double weight);
LIB4NEURO_API size_t add_connection_constant(size_t n1_idx, size_t n2_idx, double weight);
/**
* Take the existing connection with index 'connection_idx' in 'parent_network' and adds it to the structure of this
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment