Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__Hello_World__LangDev
comparison main.c @ 0:9cf4c84a3091
Initial add of copied code -- nonsense code still
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Wed, 23 May 2012 12:39:19 -0700 |
| parents | |
| children | 9ad1a6186956 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:35200dbc7d2c |
|---|---|
| 1 /* | |
| 2 * Copyright Oct 24, 2009 OpenSourceStewardshipFoundation.org | |
| 3 * Licensed under GNU General Public License version 2 | |
| 4 * | |
| 5 * author seanhalle@yahoo.com | |
| 6 */ | |
| 7 | |
| 8 #include <malloc.h> | |
| 9 #include <stdlib.h> | |
| 10 | |
| 11 #include "Matrix_Mult.h" | |
| 12 #include "SSR_Matrix_Mult/SSR_Matrix_Mult.h" | |
| 13 | |
| 14 /** | |
| 15 * | |
| 16 */ | |
| 17 int main( int argc, char **argv ) | |
| 18 { Matrix *leftMatrix, *rightMatrix, *resultMatrix; | |
| 19 ParamBag *paramBag; | |
| 20 | |
| 21 DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] ); | |
| 22 | |
| 23 paramBag = makeParamBag(); | |
| 24 readParamFileIntoBag( argv[1], paramBag ); | |
| 25 initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag ); | |
| 26 | |
| 27 resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix ); | |
| 28 | |
| 29 printf("\nresult matrix: \n"); | |
| 30 printMatrix( resultMatrix ); | |
| 31 | |
| 32 fflush(stdin); | |
| 33 | |
| 34 exit(0); //cleans up | |
| 35 } |
