Wednesday, January 19, 2011

LU Decomposition Part 2

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. 
Here's a link to my code

Tuesday, January 18, 2011

LU Decomposition C Code

The goal of this project is to code the LU Decomposition in C. This simple program finds the L and U factorization of an NxN matrix.

Below are links to the documentation and code
Latex pdf
LU.c
Latex source

Friday, January 14, 2011

First Post

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.