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

Functions

template<domain D :shared3p >
D float32 matrixUpdateColumn (D float32 mat, D uint colIndex, D float32 newCol)
 
template<domain D :shared3p >
D float64 matrixUpdateColumn (D float64 mat, D uint colIndex, D float64 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]

template<domain D :shared3p >
D float32 matrixUpdateColumn ( D float32  mat,
D uint  colIndex,
D float32  newCol 
)

◆ matrixUpdateColumn() [2/2]

template<domain D :shared3p >
D float64 matrixUpdateColumn ( D float64  mat,
D uint  colIndex,
D float64  newCol 
)