SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

template<domain D :shared3p >
D float32 matrixUpdate (D float32 mat, D uint rowIndex, D uint columnIndex, D float32 newValue)
 
template<domain D :shared3p >
D float64 matrixUpdate (D float64 mat, D uint rowIndex, D uint columnIndex, D float64 newValue)
 

Detailed Description

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

Function Documentation

◆ matrixUpdate() [1/2]

template<domain D :shared3p >
D float32 matrixUpdate ( D float32  mat,
D uint  rowIndex,
D uint  columnIndex,
D float32  newValue 
)

◆ matrixUpdate() [2/2]

template<domain D :shared3p >
D float64 matrixUpdate ( D float64  mat,
D uint  rowIndex,
D uint  columnIndex,
D float64  newValue 
)