Skip to content

Commit

Permalink
Bugfix in bohrium.linspace
Browse files Browse the repository at this point in the history
  • Loading branch information
tblum committed May 11, 2015
1 parent 6f27c1f commit 52ff78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/npbackend/array_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False,\
step = (stop-start)/float((num-1))
else:
step = (stop-start)/float(num)
y = arange(start, stop, step, dtype=dtype)
y = range(num, dtype=dtype) * step + start
if retstep:
return y, step
else:
Expand Down

0 comments on commit 52ff78d

Please sign in to comment.