|
template<domain D :shared3p > |
D uint8 | sortingNetworkSort (D uint8[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D uint16 | sortingNetworkSort (D uint16[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D uint32 | sortingNetworkSort (D uint32[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D uint64 | sortingNetworkSort (D uint64[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D int8 | sortingNetworkSort (D int8[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D int16 | sortingNetworkSort (D int16[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D int32 | sortingNetworkSort (D int32[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D int64 | sortingNetworkSort (D int64[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D xor_uint8 | sortingNetworkSort (D xor_uint8[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D xor_uint16 | sortingNetworkSort (D xor_uint16[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D xor_uint32 | sortingNetworkSort (D xor_uint32[[2]] matrix, uint column) |
|
template<domain D :shared3p > |
D xor_uint64 | sortingNetworkSort (D xor_uint64[[2]] matrix, uint column) |
|
Function for sorting rows of a matrix based on values of a column.
- Note
- D - all protection domains
-
Supported types - uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / xor_uint8 / xor_uint16 / xor_uint32 / xor_uint64
- Parameters
-
column | - index of the column used for ordering rows of the matrix |
matrix | - a matrix of supported type |
- Returns
- returns a matrix with sorted rows
- Leakage
- None
◆ sortingNetworkSort() [1/12]
D int16 sortingNetworkSort |
( |
D int16[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [2/12]
D int32 sortingNetworkSort |
( |
D int32[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [3/12]
D int64 sortingNetworkSort |
( |
D int64[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [4/12]
D int8 sortingNetworkSort |
( |
D int8[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [5/12]
D uint16 sortingNetworkSort |
( |
D uint16[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [6/12]
D uint32 sortingNetworkSort |
( |
D uint32[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [7/12]
D uint64 sortingNetworkSort |
( |
D uint64[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [8/12]
D uint8 sortingNetworkSort |
( |
D uint8[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [9/12]
D xor_uint16 sortingNetworkSort |
( |
D xor_uint16[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [10/12]
D xor_uint32 sortingNetworkSort |
( |
D xor_uint32[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [11/12]
D xor_uint64 sortingNetworkSort |
( |
D xor_uint64[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |
◆ sortingNetworkSort() [12/12]
D xor_uint8 sortingNetworkSort |
( |
D xor_uint8[[2]] |
matrix, |
|
|
uint |
column |
|
) |
| |