Open abstractqqq opened 1 month ago
There are still some hand written Rust code that computes things like dot product, L2 distances, etc. Ndarray has shown better performance and given current use cases, it will be 0 cost to cast underlying data to ndarrays.
For distance function in KNN, I suspect using a function reference is slowing down execution.
There are still some hand written Rust code that computes things like dot product, L2 distances, etc. Ndarray has shown better performance and given current use cases, it will be 0 cost to cast underlying data to ndarrays.