Browse Source

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

Samuel Thibault 8 years ago
parent
commit
bdaf83e96f
1 changed files with 3 additions and 0 deletions
  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