|
template<domain D :shared3p > |
D float32 | matrixUpdateColumn (D float32[[2]] mat, D uint colIndex, D float32[[1]] newCol) |
|
template<domain D :shared3p > |
D float64 | matrixUpdateColumn (D float64[[2]] mat, D uint colIndex, D float64[[1]] newCol) |
|
Function for obliviously updating a column in the input matrix.
- Note
- D - shared3p protection domain
-
Supported types - float32 / float64
- Parameters
-
mat | - a matrix of supported type |
colIndex | - an uint type scalar for specifying the column to replace |
newCol | - a vector with new values |
- Returns
- returns a matrix where the column at colIndex has been replaced with newCol
- Leakage
- None
◆ matrixUpdateColumn() [1/2]
D float32 matrixUpdateColumn |
( |
D float32[[2]] |
mat, |
|
|
D uint |
colIndex, |
|
|
D float32[[1]] |
newCol |
|
) |
| |
◆ matrixUpdateColumn() [2/2]
D float64 matrixUpdateColumn |
( |
D float64[[2]] |
mat, |
|
|
D uint |
colIndex, |
|
|
D float64[[1]] |
newCol |
|
) |
| |