|
template<domain D :shared3p > |
D float32 | vectorUpdate (D float32[[1]] vec, D uint index, D float32 newValue) |
|
template<domain D :shared3p > |
D float64 | vectorUpdate (D float64[[1]] vec, D uint index, D float64 newValue) |
|
Function for obliviously updating an element in the input vector.
- Note
- D - shared3p protection domain
-
Supported types - float64 / float32
- Parameters
-
vec | - a 1-dimensional vector of supported type |
index | - an uint type scalar for specifying the element to replace |
newValue | - a scalar value of the same type as the input vector |
- Returns
- returns a vector with the value at position index replaced by newValue
- Leakage
- None
◆ vectorUpdate() [1/2]
D float32 vectorUpdate |
( |
D float32[[1]] |
vec, |
|
|
D uint |
index, |
|
|
D float32 |
newValue |
|
) |
| |
◆ vectorUpdate() [2/2]
D float64 vectorUpdate |
( |
D float64[[1]] |
vec, |
|
|
D uint |
index, |
|
|
D float64 |
newValue |
|
) |
| |