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

Functions

template<domain D :shared3p >
D float32 matrixUpdateRow (D float32 mat, D uint rowIndex, D float32 newRow)
 
template<domain D :shared3p >
D float64 matrixUpdateRow (D float64 mat, D uint rowIndex, D float64 newRow)
 

Detailed Description

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

Function Documentation

◆ matrixUpdateRow() [1/2]

template<domain D :shared3p >
D float32 matrixUpdateRow ( D float32  mat,
D uint  rowIndex,
D float32  newRow 
)

◆ matrixUpdateRow() [2/2]

template<domain D :shared3p >
D float64 matrixUpdateRow ( D float64  mat,
D uint  rowIndex,
D float64  newRow 
)