diff --git a/src/include/fann_cpp.h b/src/include/fann_cpp.h index 6f54b34a..0a5ca01e 100644 --- a/src/include/fann_cpp.h +++ b/src/include/fann_cpp.h @@ -1909,6 +1909,36 @@ namespace FANN { fann_set_weight(ann, from_neuron, to_neuron, weight); } } + + /* Method: get_weights + + Get all the network weights. + + See also: + + + This function appears in FANN >= x.y.z + */ + void get_weights(fann_type *weights) { + if (ann != NULL) { + fann_get_weights(ann, weights); + } + } + + /* Method: set_weights + + Set network weights. + + See also: + + + This function appears in FANN >= x.y.z + */ + void set_weights(fann_type *weights) { + if (ann != NULL) { + fann_set_weights(ann, weights); + } + } /*********************************************************************/