smartcore
smartcore copied to clipboard
Consider the possibility to use [T] instead of Vec<T> in trait Array
I'm submitting a
- [x] exploratory
Current Behaviour:
all smartcore::linalg::basic:arrays
are implemented for Vec<T>:
impl<T: Debug + Display + Copy + Sized> Array<T, usize> for Vec<T>
Expected Behaviour:
Try to consider the possibility of implementing arrays for slices:
impl<T: Debug + Display + Copy + Sized> Array<T, usize> for [T]