We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec7206a commit b061efcCopy full SHA for b061efc
sharpy/random/__init__.py
@@ -8,8 +8,7 @@
8
def uniform(low, high, size, device="", team=1):
9
data = np.random.uniform(low, high, size)
10
if len(data.shape) == 0:
11
- sp_data = sp.empty(())
12
- sp_data[()] = data[()]
+ sp_data = sp.full((), data[()], device=device, team=team)
13
return sp_data
14
return fromfunction(
15
lambda *index: data[index],
0 commit comments