Howto create and populate a real array
Posted: 19 Jun 2014 13:36
I wish to interface with the fann library for neural nets.
I have a class fact that holds the 784 real values that I wish to pass. Assume that I have added the 784 real values already to the list.
This is the function that I want to call. Its 2nd parameter must be an array of reals. Due to the size of my first neural network layer this will be 784 reals.
How do I declare/create an array of reals. Then populate this array with data from my list. How does one add values to an array. I know how to iterate through my list.
Thank You
I have a class fact that holds the 784 real values that I wish to pass. Assume that I have added the 784 real values already to the list.
Code: Select all
class facts - test
real_data: (real_list) nondeterm.
Code: Select all
fann_train: (pointer Fann, pointer ArrayInput, unsigned SizeInput, pointer ArrayOutput, unsigned SizeOutput) language c as "_fann_train@12".
Thank You