SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions
sortingNetworkSort[[1]]

Functions

template<domain D, type T>
D T sortingNetworkSort (D T array)
 

Detailed Description

Function for sorting values in a vector with sorting network.

Note
D - all protection domains
Supported types - uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / xor_uint8 / xor_uint16 / xor_uint32 / xor_uint64
Parameters
array- a vector of supported type
Returns
returns a sorted vector from smaller to bigger values
Leakage
None

Function Documentation

◆ sortingNetworkSort()

template<domain D, type T>
D T sortingNetworkSort ( D T  array)