Example how to read a one-dimensional array.
#include <ChimeraTK/Device.h>
#include <ChimeraTK/Utilities.h>
#include <iostream>
std::cout <<
"The clocks register has " << clocks.
getNElements() <<
" elements." << std::endl;
clocks[i] = 42 + i;
}
std::cout << "Clocks are";
for(auto clockValue : clocks) {
std::cout << " " << clockValue;
}
std::cout << std::endl;
return 0;
}