Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VReo > Reo__Matrix_Mult
comparison Matrix_Mult.h @ 1:1b61e0c00512
almost working k=3, about to change to k=4
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Wed, 19 Feb 2014 09:27:10 -0800 |
| parents | c4b1849c05ef |
| children |
comparison
equal
deleted
inserted
replaced
| 0:c6f7e57f36b5 | 1:812c0f60ddf6 |
|---|---|
| 8 | 8 |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include <unistd.h> | 10 #include <unistd.h> |
| 11 #include <malloc.h> | 11 #include <malloc.h> |
| 12 | 12 |
| 13 #include <PR__include/PR__primitive_data_types.h> | |
| 13 #include "ParamHelper/Param.h" | 14 #include "ParamHelper/Param.h" |
| 14 | 15 |
| 15 //============================== Structures ============================== | 16 //============================== Structures ============================== |
| 16 | 17 |
| 17 typedef | 18 typedef |
| 40 Matrix * resultMatrix; | 41 Matrix * resultMatrix; |
| 41 | 42 |
| 42 // define the starting and ending boundaries for this piece of the | 43 // define the starting and ending boundaries for this piece of the |
| 43 // result matrix. These are derivable from the left and right | 44 // result matrix. These are derivable from the left and right |
| 44 // matrices, but included them for readability of code. | 45 // matrices, but included them for readability of code. |
| 45 int prodStartRow, prodEndRow; | 46 int resStartRow, resEndRow; |
| 46 int prodStartCol, prodEndCol; | 47 int resStartCol, resEndCol; |
| 47 // Start and end of the portion of the left matrix that contributes to | 48 // Start and end of the portion of the left matrix that contributes to |
| 48 // this piece of the product | 49 // this piece of the product |
| 49 int leftStartRow, leftEndRow; | 50 int leftStartRow, leftEndRow; |
| 50 int leftStartCol, leftEndCol; | 51 int leftStartCol, leftEndCol; |
| 51 // Start and end of the portion of the right matrix that contributes to | 52 // Start and end of the portion of the right matrix that contributes to |
