smartcore icon indicating copy to clipboard operation
smartcore copied to clipboard

Consider the possibility to use [T] instead of Vec<T> in trait Array

Open Mec-iS opened this issue 1 year ago • 0 comments

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]

Mec-iS avatar Oct 29 '22 11:10 Mec-iS