summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c')
-rw-r--r--src/c/nnls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/nnls.c b/src/c/nnls.c
index ddd9f2f..e512388 100644
--- a/src/c/nnls.c
+++ b/src/c/nnls.c
@@ -204,7 +204,7 @@ int nnls_algorithm(double *a, int m,int n, double *b, double *x, double *rnorm)
if(n < 3)
itmax=n*3;
else
- itmax=n*n;
+ itmax=n*n*n;
while(iz1 <= iz2 && nsetp < m) {