2D vectors

I am trying to send a 1D vector to 2D vector.

I have a table consisting of 2500 rows and 3 columns. I recorded these vaiables at a vector having 7500 spaces. But now i want to have these values as a 2D vector. I wrote such a code:

1
2
3
4
for(i=0;i<2500;i++) {
 for( int j=0;j<3;j++){	
	v(i)(j)=temp.at(j);
			}}


but ı have an error so: term does not evaluate to a function taking 1 arguments
thank you. this works
Topic archived. No new replies allowed.