MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / ident

Function ident

FHE/Matrix.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace std;
12
13void ident(matrix& U,int n)
14{
15 U.resize(n, vector<bigint>(n) );
16 for (int i=0; i<n; i++)
17 { for (int j=0; j<n; j++)
18 { U[i][j]=0; }
19 U[i][i]=1;
20 }
21}
22
23
24void ident(imatrix& U,int n)

Callers 4

HNFFunction · 0.85
SNF_StepFunction · 0.85
SNFFunction · 0.85
pinvFunction · 0.85

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected