Explorar o código

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

Samuel Thibault %!s(int64=8) %!d(string=hai) anos
pai
achega
bdaf83e96f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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