Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VOMP > VOMP__Hello_World__LangDev
comparison 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 |
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 } |
