Hello,
If I have an array that is defined by a QVector<Qvector<QVector<double> > > and lets say its dimensions are [7, 10000, 5] is there any easy way for me to extract the data from a given dimension without having to run for loops?
e.g. I want to extract the first entry of the last dimension so I have an new array that is size [7, 10000], or lets say I want to extract the 10th entry of the second dimension so I have a new [7,5] array etc etc
In a programming language I was using before (an interpreted language) I could for example request the first case I used above by saying new_array = old_array[*,*,0] where the * tells the program to get all of the entries in those dimensions, or in the second case new_array = old_array[*,9,*]
My Qt code I have at the moment works and I guess it is fast enough for me but if I can avoid another set of for loops I would like to
Cheers
Oz
or pending a lack of any method etc, a recommended strategy would be cool as well
Bookmarks