Hi I'm new to C++ and am trying to do something that is very easy to do with Matlab. I have a for loop which computes a vector. I would like to then store this vector so that I can access it outside of the loop.
for(ii=0; ii < numObs; ii++} {
someVector = ...
someMatrix[ii][:] = someVector
}
The someMatrix[ii][:] doesn't work of course, but that's what I would like to do. Any help's appreciated, thanks!
Clarification: someVector is an 1xn element vector which is computed each time in the loop. I simply want to store it in either a matrix or array (not sure what) so that I can call someMatrix[ii] and get the vector back.
matrixorvector. - George