changeset 0:55fdabd7269c

Initial add.. just the main file for now
author Some Random Person <seanhalle@yahoo.com>
date Sun, 20 May 2012 15:11:31 -0700
parents
children 1bca76607998
files .hgeol .hgignore __brch__default main.c
diffstat 4 files changed, 62 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgeol	Sun May 20 15:11:31 2012 -0700
     1.3 @@ -0,0 +1,14 @@
     1.4 +
     1.5 +[patterns]
     1.6 +**.py = native
     1.7 +**.txt = native
     1.8 +**.c = native
     1.9 +**.h = native
    1.10 +**.cpp = native
    1.11 +**.java = native
    1.12 +**.class = bin
    1.13 +**.jar = bin
    1.14 +**.sh = native
    1.15 +**.pl = native
    1.16 +**.jpg = bin
    1.17 +**.gif = bin
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/.hgignore	Sun May 20 15:11:31 2012 -0700
     2.3 @@ -0,0 +1,12 @@
     2.4 +nbproject
     2.5 +Makefile
     2.6 +build
     2.7 +dist
     2.8 +src/Default
     2.9 +src/.settings
    2.10 +src/.cproject
    2.11 +src/.project
    2.12 +.dep.inc
    2.13 +glob:.cproject
    2.14 +glob:.project
    2.15 +glob:Debug
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/__brch__default	Sun May 20 15:11:31 2012 -0700
     3.3 @@ -0,0 +1,1 @@
     3.4 +Applications normally have only the default branch -- they shouldn't be affected by any choices in VMS or language..
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/main.c	Sun May 20 15:11:31 2012 -0700
     4.3 @@ -0,0 +1,35 @@
     4.4 +/*
     4.5 + *  Copyright Oct 24, 2009 OpenSourceStewardshipFoundation.org
     4.6 + *  Licensed under GNU General Public License version 2
     4.7 + *
     4.8 + * author seanhalle@yahoo.com
     4.9 + */
    4.10 +
    4.11 +#include <malloc.h>
    4.12 +#include <stdlib.h>
    4.13 +
    4.14 +#include "Matrix_Mult.h"
    4.15 +#include "SSR_Matrix_Mult/SSR_Matrix_Mult.h"
    4.16 +
    4.17 +/**
    4.18 + * 
    4.19 + */
    4.20 +int main( int argc, char **argv )
    4.21 + { Matrix      *leftMatrix, *rightMatrix, *resultMatrix;
    4.22 +   ParamBag    *paramBag;
    4.23 +   
    4.24 +   DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] );
    4.25 +
    4.26 +   paramBag = makeParamBag();
    4.27 +   readParamFileIntoBag( argv[1], paramBag );
    4.28 +   initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag );
    4.29 +   
    4.30 +   resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix );
    4.31 +
    4.32 +   printf("\nresult matrix: \n");
    4.33 +   printMatrix( resultMatrix );
    4.34 +   
    4.35 +   fflush(stdin);
    4.36 +   
    4.37 +   exit(0); //cleans up
    4.38 + }