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
Maybe indeed. Having a dedicated trait can be beneficial in some cases though.
For instance, a sparse vector can be seen as a sparse matrix, but currently
this is done by creating a sparse matrix with Vec as a backend for the indptr
storage. Having a trait would enable having a [usize; 2] for the indptr.
See rust-lang/rust#29701
The implementation in bluss/rust-ndarray looks like a good example of how to do it.
The text was updated successfully, but these errors were encountered: