|
template<domain D :shared3p > |
D float32 | matrixUpdateRow (D float32[[2]] mat, D uint rowIndex, D float32[[1]] newRow) |
|
template<domain D :shared3p > |
D float64 | matrixUpdateRow (D float64[[2]] mat, D uint rowIndex, D float64[[1]] newRow) |
|
Function for obliviously updating a row 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 to replace |
newRow | - a vector with new values |
- Returns
- returns a matrix where the row at rowIndex has been replaced with newRow
- Leakage
- None
◆ matrixUpdateRow() [1/2]
D float32 matrixUpdateRow |
( |
D float32[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D float32[[1]] |
newRow |
|
) |
| |
◆ matrixUpdateRow() [2/2]
D float64 matrixUpdateRow |
( |
D float64[[2]] |
mat, |
|
|
D uint |
rowIndex, |
|
|
D float64[[1]] |
newRow |
|
) |
| |