view main.c @ 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
line source
1 /*
2 * Copyright Oct 24, 2009 OpenSourceStewardshipFoundation.org
3 * Licensed under GNU General Public License version 2
4 *
5 * author seanhalle@yahoo.com
6 */
8 #include <malloc.h>
9 #include <stdlib.h>
11 #include "Matrix_Mult.h"
12 #include "SSR_Matrix_Mult/SSR_Matrix_Mult.h"
14 /**
15 *
16 */
17 int main( int argc, char **argv )
18 { Matrix *leftMatrix, *rightMatrix, *resultMatrix;
19 ParamBag *paramBag;
21 DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] );
23 paramBag = makeParamBag();
24 readParamFileIntoBag( argv[1], paramBag );
25 initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag );
27 resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix );
29 printf("\nresult matrix: \n");
30 printMatrix( resultMatrix );
32 fflush(stdin);
34 exit(0); //cleans up
35 }