core.matrix
core.matrix copied to clipboard
equivalent of numpy.linspace
Hi,
Does core.matrix have an equivalent of the numpy.linspace function, which creates a sequence of N evenly spaced points between start and end? A function of the same name also exists in Matlab.
Thanks!
Sounds useful, though not sure if it deserves a first class protocol function in core.matrix.
(m/array (range start end step)) gets you most of the way there..... just needs a but of wrapping to handle the different parameter options and edge cases I think.