Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equivalent of numpy.linspace #330

Open
shark8me opened this issue Oct 16, 2017 · 1 comment
Open

equivalent of numpy.linspace #330

shark8me opened this issue Oct 16, 2017 · 1 comment

Comments

@shark8me
Copy link
Contributor

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!

@mikera
Copy link
Owner

mikera commented Feb 6, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants