SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
radixSortWithIndex

Functions

template<domain D, type T>
D uint radixSortWithIndex (D T[[1]] array, D uint[[1]] 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()

D uint radixSortWithIndex ( D T[[1]]  array,
D uint[[1]]  indexVector 
)