Created
April 25, 2015 23:09
-
-
Save carloszan/c37d8458cb53b07499c3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
int h(int matriz **g,int matriz **f, int n, int m) | |
{ | |
int max=0, i, j,soma; | |
for(i=-1;i<=1;i++) | |
for(j=-1;j<=1;j++){ | |
soma=g[i][j]*f[n+i][m+j]; | |
if(soma > max) | |
max=soma; | |
} | |
return max; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment