-
Notifications
You must be signed in to change notification settings - Fork 358
Open
Labels
Description
Right now I'm trying to pass integer arguments to Array::range. I have to first cast arguments to f32, then casting the result to int doesn't compile arr.mapv(|elem| elem as usize) does it work for Linspace<>?.
I noticed that range() works as I want for end<begin (unlike 5..1 which is empty). However #493 (comment) indicates I will have to perform data copies on every single range() I call, which sounds like a waste of resources.
Why doesn't Array::range and Linspace accept integer values?
- You should document numpy.astype ndarray equivalent of numpy.astype? #493 in https://docs.rs/ndarray/0.11.2/ndarray/doc/ndarray_for_numpy_users/index.html .