Skip to content

Commit

Permalink
Merge pull request #210 from OpenPTV/alexlib-patch-3
Browse files Browse the repository at this point in the history
Update lsqadj.c
  • Loading branch information
alexlib authored Oct 24, 2023
2 parents 2c120e1 + 7c91346 commit 6ef0220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liboptv/src/lsqadj.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ void ata (double *a, double *ata, int m, int n, int n_large ) {
{
for (j = 0; j < n; j++)
{
*(ata+i*n_large+j) = 0.0;
*(ata+i*n+j) = 0.0;
for (k = 0; k < m; k++)
*(ata+i*n_large+j) += *(a+k*n_large+i) * *(a+k*n_large+j);
*(ata+i*n+j) += *(a+k*n_large+i) * *(a+k*n_large+j);
}
}
}
Expand Down

0 comments on commit 6ef0220

Please sign in to comment.