]>
vgcfreebox.myrthtech.pt Git - ue-pp-squarematrixparallelisation.git/blob - SequencialMatrixSearch.c
4 const int m_rows
= 40000;
5 const int m_cols
= m_rows
;
7 int matrix
[m_rows
][m_cols
];
11 printf("Populate the matrix\n");
12 for(int r
= 0; r
< m_rows
; r
++){
13 for(int c
= 0; c
< m_cols
; c
++){
14 matrix
[r
][c
] = r
*m_cols
+c
;
18 printf("Search matrix \n");
19 for(int rr
= 0; rr
< m_rows
; rr
++){
20 for(int cc
= 0; cc
< m_cols
; cc
++){
21 if(matrix
[rr
][cc
] > hv
){
27 printf("Done\n The biggest value found is %d", hv
);