Skip to content

Instantly share code, notes, and snippets.

@carloszan
Created April 25, 2015 23:09
Show Gist options
  • Save carloszan/c37d8458cb53b07499c3 to your computer and use it in GitHub Desktop.
Save carloszan/c37d8458cb53b07499c3 to your computer and use it in GitHub Desktop.
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