SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
matrixUpdateColumn

Functions

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)
 

Detailed Description

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

Function Documentation

◆ 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 
)