Passing 2D arrays between classes

Hi,

I am having problems sharing a 2d array between to classes in c++

I have made software that takes data files for sensors and does various thing to the data.

in my main function i start an event loop, 100000 events per data file, i associate data from a channel to its corresponding pixel. this is done using a 2d array. this has to be calculated as its large 16x128.

a class is called inside the event loop that does clustering for the data. this class needs access to the 2d array. At the moment i just insert the code that calculated the 2d array but this makes the program very slow and i want to fix it, for each event out of 100000 it recalculates the contents of the 2d array. my program takes ~10min to run when it should take <1min.

cheers for any help






my
Need code to help!
WilliamW1979 is right .. past your code ..
Topic archived. No new replies allowed.