aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/polybench-syn/linear-algebra/solvers/lu.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/polybench-syn/linear-algebra/solvers/lu.c')
-rw-r--r--benchmarks/polybench-syn/linear-algebra/solvers/lu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/polybench-syn/linear-algebra/solvers/lu.c b/benchmarks/polybench-syn/linear-algebra/solvers/lu.c
index 56dadd7..a7ec246 100644
--- a/benchmarks/polybench-syn/linear-algebra/solvers/lu.c
+++ b/benchmarks/polybench-syn/linear-algebra/solvers/lu.c
@@ -29,7 +29,7 @@ void init_array (int n,
{
for (j = 0; j <= i; plus(j))
A[i][j] = sdivider(smodulo(-j, n), n) + ONE;
- for (j = plus(i); j < n; plus(j)) {
+ for (j = i+1; j < n; plus(j)) {
A[i][j] = 0;
}
A[i][i] = 1;