rust-ndarray / ndarray

ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
https://docs.rs/ndarray/
Apache License 2.0
3.43k stars 295 forks source link

Export Linspace and Logspace iterators #1348

Closed johann-cm closed 5 months ago

johann-cm commented 5 months ago

This is a simple PR to make the Linspace and Logspace iterators, as well as the functions linspace, range, and logspace publicly available. Resolves #1065.

nilgoyette commented 5 months ago

One could say that it's strange for ndarray to provide a lin/log-space iterator. Imo, this code already exist and we're already maintaining it. We might as well share it to make it useful to more people. 👍

I don't mind merging this. I'll wait one day to let the other maintainers express their opinion, if they want.

nilgoyette commented 5 months ago

Thank you for your contribution @johann-cm