Open
Description
>>> np.linspace(-9007199254740993, 0, 1, dtype=np.int64)
array([-9007199254740992])
>>> np.linspace(0, 9007199254740993, 2, dtype=np.uint64, endpoint=True)
array([ 0, 9007199254740992], dtype=uint64)
>>> np.__version__
'1.21.0.dev0+1420.gc2dd42fda'
(notice that the last digit has been changed from a 3 to a 2)
It's not clear to me if this should be considered a bug, or if this is expected from the way linspace inherently has to do rounding.
I found #16813 which seems related.