ソースを参照

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