M
Matthias Pospiech
I have an 2D vector array, but a function that can calculate only with
1D arrays. Now I need to pass every row of the 2D array to that function.
So how can I pass a part (row or column) of a 2D vector array to a
function as a pointer - the result shall be in the 2D array automatically.
With C-Arrays A[N][N] I know the solution by passing
function(A + x*N);
Matthias
1D arrays. Now I need to pass every row of the 2D array to that function.
So how can I pass a part (row or column) of a 2D vector array to a
function as a pointer - the result shall be in the 2D array automatically.
With C-Arrays A[N][N] I know the solution by passing
function(A + x*N);
Matthias