Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VOMP > VOMP__Hello_World__LangDev
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/main.c Sun May 20 15:11:31 2012 -0700 1.3 @@ -0,0 +1,35 @@ 1.4 +/* 1.5 + * Copyright Oct 24, 2009 OpenSourceStewardshipFoundation.org 1.6 + * Licensed under GNU General Public License version 2 1.7 + * 1.8 + * author seanhalle@yahoo.com 1.9 + */ 1.10 + 1.11 +#include <malloc.h> 1.12 +#include <stdlib.h> 1.13 + 1.14 +#include "Matrix_Mult.h" 1.15 +#include "SSR_Matrix_Mult/SSR_Matrix_Mult.h" 1.16 + 1.17 +/** 1.18 + * 1.19 + */ 1.20 +int main( int argc, char **argv ) 1.21 + { Matrix *leftMatrix, *rightMatrix, *resultMatrix; 1.22 + ParamBag *paramBag; 1.23 + 1.24 + DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] ); 1.25 + 1.26 + paramBag = makeParamBag(); 1.27 + readParamFileIntoBag( argv[1], paramBag ); 1.28 + initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag ); 1.29 + 1.30 + resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix ); 1.31 + 1.32 + printf("\nresult matrix: \n"); 1.33 + printMatrix( resultMatrix ); 1.34 + 1.35 + fflush(stdin); 1.36 + 1.37 + exit(0); //cleans up 1.38 + }
