You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 compilearr.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?
Right now I'm trying to pass integer arguments to
Array::range
. I have to first cast arguments tof32
, thencasting the result to int doesn't compilearr.mapv(|elem| elem as usize)
does it work forLinspace<>
?.I noticed that
range()
works as I want forend<begin
(unlike5..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?
The text was updated successfully, but these errors were encountered: