ok thanks. I was actually wanting to use it in such a way that a function can return multiple arrays.
for instance I have a function that calculates peaks and troughs but at the same time (within the same loop) also 4 other arrays are calculated. What I do now is save all arrays in 6 static variable arrays and then define a separate function to get these arrays.
I though maybe I could fill up the matrix with these 6 arrays and get them all at once. But I think I will need to be able to access matrix elements for this.
But no big issue. My knowledge of C++ is too small to do it in another way although I had a look at the Osaka source code