I was wondering if I can use OTL to parallelize this loop.
I have the following code.
for i := 1 to XRes do
begin
for j := 1 to XRes do
begin
GridMat.Elem[i,j] := StrToFloat(ListOfValues[(i-1)+((j-1)*Xres)]);
end;
Invalidate;
end;
Is it possible to pass the GridMat (from SDL_matrix.TMatrix) as a parameter to all the parallel ForEach and add the values to it.