struct fann * fann_create_array(float connection_rate, float learning_rate, unsigned int num_layers, unsigned int * neurons_per_layer);
fann_create_array will create a new artificial neural network, and return a pointer to
it. It is the same as fann_create, only it accepts an array as its final parameter
instead of variable arguments.
Example 5-1. fann_create_array example
unsigned int neurons_per_layer[3] = {2, 3, 1};
// The following two calls have identical results
struct fann * ann = fann_create_array(1.0f, 0.7f, 3, neurons_per_layer);
struct fann * ann2 = fann_create(1.0f, 0.7f, 3, 2, 3, 1);
fann_destroy(ann);
fann_destroy(ann2);
This function appears in FANN >= 1.0.5.