Skip to content

Commit

Permalink
Update functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mwangi-ke authored Sep 2, 2023
1 parent a525853 commit efaff43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ivy/functional/frontends/numpy/random/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,5 +282,4 @@ def zipf(a, size=None):
if a <= 1:
return 0
u = ivy.random_uniform(low=0.0, high=1.0, shape=size, dtype="float64")
x=ivy.floor(ivy.pow(1 / (1 - u), 1 / a))
return x
return ivy.floor(ivy.pow(1 / (1 - u), 1 / a))

0 comments on commit efaff43

Please sign in to comment.