From a2b3c94df7aadc9c0150fe5f1296d31b662beefd Mon Sep 17 00:00:00 2001 From: Calvin Date: Mon, 20 May 2013 16:58:51 -0400 Subject: use n*n*n instead on n*n for nnls --- src/c/nnls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c/nnls.c') 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) { -- cgit v1.2.3