Created
March 1, 2014 21:51
-
-
Save hgn/9298003 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define N 1024 | |
int mul1[N][N]; | |
int mul2[N][N]; | |
int res[N][N]; | |
void calculate(void) | |
{ | |
int i, j, k; | |
for (i = 0; i < N; ++i) | |
for (j = 0; j < N; ++j) | |
for (k = 0; k < N; ++k) | |
res[i][j] += mul1[i][k] * mul2[k][j]; | |
} | |
int main(void) | |
{ | |
calculate(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment