Skip to content

Commit 45114c9

Browse files
author
Raghuveer Devulapalli
committed
Fix API signatures for keyvalue sort
1 parent 9a1a375 commit 45114c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Equivalent to `np.argselect` in
7575
[NumPy](https://numpy.org/doc/stable/reference/generated/numpy.argpartition.html).
7676

7777
```cpp
78-
void x86simdsortStatic::argselect<T>(T* arr, size_t *arg, size_t k, size_t arrsize);
78+
void x86simdsortStatic::argselect<T>(T* arr, size_t *arg, size_t k, size_t arrsize, bool hasnan = false);
7979
```
8080
Supported datatypes: `uint32_t`, `int32_t`, `float`, `uint64_t`, `int64_t` and
8181
`double`.
@@ -84,7 +84,7 @@ The algorithm resorts to scalar `std::sort` if the array contains NaNs.
8484

8585
#### Key-value sort
8686
```cpp
87-
void x86simdsortStatic::keyvalue_qsort<T1, T2>(T1* key, T2* value, size_t arrsize);
87+
void x86simdsortStatic::keyvalue_qsort<T1, T2>(T1* key, T2* value, size_t arrsize, bool hasnan = false, bool descending = false);
8888
```
8989
Supported datatypes: `uint32_t`, `int32_t`, `float`, `uint64_t`, `int64_t` and
9090
`double`.
@@ -127,7 +127,7 @@ int main() {
127127
### Build using g++
128128

129129
```
130-
g++ main.cpp -mavx512f -mavx512dq -O3 /* for AVX-512 */
130+
g++ main.cpp -mavx512f -mavx512dq -mavx512vl -O3 /* for AVX-512 */
131131
g++ main.cpp -mavx2 -O3 /* for AVX2 */
132132
```
133133

0 commit comments

Comments
 (0)