Hello everyone,
I have two functions. One, Function 1, produces tuple contains one double and one 1D vector. In the second, Function 2, I run the Function 1 for different kk, so each time I obtained different 1D vector which corresponds to (get<1>(obtained). TI had to build 2D matrix of these 1D vectors by adding them vertically. So, I tried to do that by push_back. The problem, in main function below since I have to do this job for 10 iterations, ecah time start matrix grows up until 5. However, I need to empty the container start before each iteration. Where and how can do that ? Basically, start should not been cumulated. it must be deleted and new vectors must be pushed back.