```
static void getCofactor(int A[][], int temp[][], int p, int q, int n){
int i = 0, j = 0;
for (int row = 0; row < n; row++){
for (int col = 0; col < n; col++){
if (row != p && col != q)\{
temp[i][j++] = A[row][col];
if (j == n - 1){
j = 0;
i++;
}
}
}
}
}
```

Find co-factor in matrix

Java RecipesThis code is retrieving the COFACTOR for an array of N points. The COFACTOR is a number that tells you how much of each element is contributed by each row and column.

## 0 Comments

Add Comment

Log in to add a comment