SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions
radixSortWithIndex

Functions

template<domain D, type T>
D uint radixSortWithIndex (D T array, D uint indexVector)
 

Detailed Description

Function for sorting values in a vector using the radix sort algorithm.

Note
D - all protection domains
Supported types - uint / xor_uint64
Parameters
array- a vector of supported type
indexVector- a vector of indexes that correspond to a value in the input array
Returns
returns the sorted indexVector where every index corresponds to a value in the input vector
Leakage
Shuffled reordering decisions are declassified

Function Documentation

◆ radixSortWithIndex()

template<domain D, type T>
D uint radixSortWithIndex ( D T  array,
D uint  indexVector 
)