|
template<domain D :shared3p > |
D float32 | matrixUpdate (D float32[[2]] mat, D uint rowIndex, D uint columnIndex, D float32 newValue) |
|
template<domain D :shared3p > |
D float64 | matrixUpdate (D float64[[2]] mat, D uint rowIndex, D uint columnIndex, D float64 newValue) |
|
Function for obliviously updating a value in the input matrix.
- Note
- D - shared3p protection domain
-
Supported types - float32 / float64
- Parameters
-
mat | - a 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 |
newValue | - a new scalar value |
- Returns
- returns a matrix where the element at row rowIndex and column colIndex has been replaced with newValue
- Leakage
- None
◆ matrixUpdate() [1/2]
D float32 matrixUpdate |
( |
D float32[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex, |
|
|
D float32 |
newValue |
|
) |
| |
◆ matrixUpdate() [2/2]
D float64 matrixUpdate |
( |
D float64[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D uint |
columnIndex, |
|
|
D float64 |
newValue |
|
) |
| |