Sfoglia il codice sorgente

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

Samuel Thibault 8 anni fa
parent
commit
bdaf83e96f
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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());
 			A[i + j*size] += (TYPE)(I*starpu_drand48());
 #endif
 #endif
 			if (i == j)
 			if (i == j)
+			{
+				A[i + j*size] += 1;
 				A[i + j*size] *= 100;
 				A[i + j*size] *= 100;
+			}
 		}
 		}
 	}
 	}
 #endif
 #endif