|
template<domain D> |
D bool | matrixLookup (D bool[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D uint8 | matrixLookup (D uint8[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D uint16 | matrixLookup (D uint16[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D uint32 | matrixLookup (D uint32[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D uint | matrixLookup (D uint[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D int8 | matrixLookup (D int8[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D int16 | matrixLookup (D int16[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D int32 | matrixLookup (D int32[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D int | matrixLookup (D int[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D float32 | matrixLookup (D float32[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
template<domain D> |
D float64 | matrixLookup (D float64[[2]] mat, D uint rowIndex, D uint columnIndex) |
|
Function for obliviously looking up an element in the input matrix.
- Note
- D - all protection domains
-
Supported types - bool / uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / float32 / float64
- Parameters
-
mat | - a 2-dimensional matrix of supported type |
rowIndex | - an uint type scalar for specifying the row in the input matrix |
colIndex | - an uint type scalar for specifying the column in the input matrix |
- Returns
- returns the element from the input matrix specified by rowIndex and colIndex
- Leakage
- None
◆ matrixLookup() [1/11]
D bool matrixLookup |
( |
D bool[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [2/11]
D float32 matrixLookup |
( |
D float32[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [3/11]
D float64 matrixLookup |
( |
D float64[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [4/11]
D int16 matrixLookup |
( |
D int16[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [5/11]
D int32 matrixLookup |
( |
D int32[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [6/11]
D int8 matrixLookup |
( |
D int8[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [7/11]
D int matrixLookup |
( |
D int[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [8/11]
D uint16 matrixLookup |
( |
D uint16[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [9/11]
D uint32 matrixLookup |
( |
D uint32[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [10/11]
D uint8 matrixLookup |
( |
D uint8[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |
◆ matrixLookup() [11/11]
D uint matrixLookup |
( |
D uint[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex |
|
) |
| |