annotate main.c @ 28:c35cb1f48f89
slicing factor 0.5 actually gives better results in this ver
| author |
Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
| date |
Tue, 17 Apr 2012 20:13:26 +0200 |
| parents |
1461ed1901cc |
| children |
|
| rev |
line source |
|
Me@10
|
1 /*
|
|
Me@10
|
2 * Copyright Oct 24, 2009 OpenSourceStewardshipFoundation.org
|
|
Me@10
|
3 * Licensed under GNU General Public License version 2
|
|
Me@10
|
4 *
|
|
Me@10
|
5 * author seanhalle@yahoo.com
|
|
Me@10
|
6 */
|
|
Me@10
|
7
|
|
Me@10
|
8 #include <malloc.h>
|
|
Me@10
|
9 #include <stdlib.h>
|
|
Me@10
|
10
|
|
Me@10
|
11 #include "Matrix_Mult.h"
|
|
Me@10
|
12 #include "SSR_Matrix_Mult/SSR_Matrix_Mult.h"
|
|
Me@10
|
13
|
|
Me@10
|
14 /**
|
|
Me@10
|
15 *
|
|
Me@10
|
16 */
|
|
Me@10
|
17 int main( int argc, char **argv )
|
|
Me@10
|
18 { Matrix *leftMatrix, *rightMatrix, *resultMatrix;
|
|
Me@10
|
19 ParamBag *paramBag;
|
|
Me@10
|
20
|
|
seanhalle@18
|
21 DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] );
|
|
Me@10
|
22
|
|
Me@10
|
23 paramBag = makeParamBag();
|
|
Me@10
|
24 readParamFileIntoBag( argv[1], paramBag );
|
|
Me@10
|
25 initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag );
|
|
Me@10
|
26
|
|
Me@10
|
27 resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix );
|
|
Me@10
|
28
|
|
Me@10
|
29 printf("\nresult matrix: \n");
|
|
Me@10
|
30 printMatrix( resultMatrix );
|
|
seanhalle@18
|
31
|
|
Me@10
|
32 fflush(stdin);
|
|
Me@10
|
33
|
|
Me@10
|
34 exit(0); //cleans up
|
|
Me@10
|
35 }
|