Skip to content

Commit e9417f5

Browse files
committed
sw: Fix random_integers() deprecation warning
1 parent 3550df0 commit e9417f5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sw/apps/atax/scripts/datagen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def emit_header(self, **kwargs):
2929
header = [super().emit_header()]
3030

3131
M, N = kwargs['M'], kwargs['N']
32-
A = np.random.random_integers(-200, 100, size=(M, N))/100
33-
x = np.random.random_integers(-200, 100, size=(N, 1))/100
32+
A = np.random.randint(-200, 100, size=(M, N))/100
33+
x = np.random.randint(-200, 100, size=(N, 1))/100
3434
y = self.golden_model(A, x)
3535

3636
assert (M % 8) == 0, "M must be an integer multiple of the number of cores"

sw/apps/correlation/scripts/datagen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def emit_header(self, **kwargs):
2929
header = [super().emit_header()]
3030

3131
M, N = kwargs['M'], kwargs['N']
32-
data = np.random.random_integers(-200, 100, size=(N, M))/100
32+
data = np.random.randint(-200, 100, size=(N, M))/100
3333
corr = self.golden_model(data)
3434

3535
data = data.flatten()

sw/apps/covariance/scripts/datagen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def emit_header(self, **kwargs):
2929
header = [super().emit_header()]
3030

3131
M, N = kwargs['M'], kwargs['N']
32-
data = np.random.random_integers(-200, 100, size=(N, M))
32+
data = np.random.randint(-200, 100, size=(N, M))
3333
cov = self.golden_model(data)
3434

3535
assert (M % 8) == 0, "M must be an integer multiple of the number of cores"

0 commit comments

Comments
 (0)