瀏覽代碼

Make sure diagonal is really stronger than the rest of the matrix

Samuel Thibault 8 年之前
父節點
當前提交
bdaf83e96f
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      examples/lu/lu_example.c

+ 3 - 0
examples/lu/lu_example.c

@@ -189,7 +189,10 @@ static void init_matrix(void)
 			A[i + j*size] += (TYPE)(I*starpu_drand48());
 #endif
 			if (i == j)
+			{
+				A[i + j*size] += 1;
 				A[i + j*size] *= 100;
+			}
 		}
 	}
 #endif