This method uses a single array to represent an nxn matrix instead of a matrix. This should make the code more robust since C naturally reads arrays across columns. For example:
Code 1:
for j 1 to 10
for i 1 to 10
a[i][j] += 2;
end
end
Code 2:
for j 1 to 10
for i 1 to 10
a[j][i] += 2;
end
end
Code 1 wont be as fast as code 2 but in fortran the opposite is true.
The purpose of this blog is to keep track of all the projects I work on in my spare time. The general outline will be the problem whether that is an aerodynamics application, a numerical methods tool, excel macro, powerpoint macro or anything. The second is the documentation of the problem and solution which will be completed in as a PDF using LATEX. The Code will also be provided along with the latex script used to create the documentation.