Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lib4neuro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MolDyn
lib4neuro
Commits
538ac8b4
Commit
538ac8b4
authored
6 years ago
by
Michal Kravcenko
Browse files
Options
Downloads
Patches
Plain Diff
MOD: changed the return type of add_connection_constant
parent
f9bbe882
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Network/NeuralNetwork.cpp
+3
-1
3 additions, 1 deletion
src/Network/NeuralNetwork.cpp
src/Network/NeuralNetwork.h
+1
-1
1 addition, 1 deletion
src/Network/NeuralNetwork.h
with
4 additions
and
2 deletions
src/Network/NeuralNetwork.cpp
+
3
−
1
View file @
538ac8b4
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
src/Network/NeuralNetwork.h
+
1
−
1
View file @
538ac8b4
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment