From 138649c03d50a5760caf66d77db3be61d8eff76e Mon Sep 17 00:00:00 2001 From: Alex Liberzon Date: Fri, 15 Dec 2023 23:54:02 +0200 Subject: [PATCH] Revert "Update lsqadj.c" This reverts commit 7c9134697470d673a9fe1f7bae0c268d9c781c71. --- liboptv/src/lsqadj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liboptv/src/lsqadj.c b/liboptv/src/lsqadj.c index eb42e0df..d18099f6 100644 --- a/liboptv/src/lsqadj.c +++ b/liboptv/src/lsqadj.c @@ -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+j) = 0.0; + *(ata+i*n_large+j) = 0.0; for (k = 0; k < m; k++) - *(ata+i*n+j) += *(a+k*n_large+i) * *(a+k*n_large+j); + *(ata+i*n_large+j) += *(a+k*n_large+i) * *(a+k*n_large+j); } } }