Add bubble sort and quick sort in numojo.core.sort module. Implement the sort method using the quick sort algorithm.
The location of the module is similar to the Numpy (numpy._core.npysort).
There is also a binary_sort function in the numojo.math.statistics.cumulative_reduce. I personally prefer a standalone sort module because the sorting functions are quite essential. Let's keep it an open discussion.
Test with an array of 10000 Float64 numbers, 1000 times.
Add bubble sort and quick sort in
numojo.core.sort
module. Implement thesort
method using the quick sort algorithm.The location of the module is similar to the Numpy (
numpy._core.npysort
).There is also a
binary_sort
function in thenumojo.math.statistics.cumulative_reduce
. I personally prefer a standalonesort
module because the sorting functions are quite essential. Let's keep it an open discussion.Test with an array of 10000 Float64 numbers, 1000 times.