[Numpy-discussion] Vectorized version of numpy.linspace

Marten van Kerkwijk m.h.vankerkwijk at gmail.com
Wed Nov 14 14:32:08 EST 2018


Code being better than words: see https://github.com/numpy/numpy/pull/12388
for an implementation. The change in the code proper is very small, though
it is worrying that it causes two rather unrelated tests too fail (even if
arguably both tests were wrong).

Note that this does not give flexibility to put the axis where one wants;
as written, the code made putting it at the start the obvious solution, as
it avoids doing anything with the shapes of start and stop.

-- Marten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20181114/0a169972/attachment.html>


More information about the NumPy-Discussion mailing list