I have some data stored in a std::vector<std::vector<double>
. I used this to create a std::valarray
from my std::vector<std::vector<double>
.
std:valarray<double> corpX(corps_tmp[i].data(), corps_tmp[i].size());
With this new std:valarray<double>
I create a std::vector
of corpX, so I obtain an std::vector<std:valarray<double>>
. Now I need to store also the first two values of each std::valarray
in another std::valarray
:
std:valarray<double> position_corps = \\ Concatenation of all the std::valarrays corpsX
How can I accomplish this in a simple way? Thank you!