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

Function SNF_Step

FHE/Matrix.cpp:189–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187
188
189void SNF_Step(matrix& S,matrix& V)
190{
191 //cout << "Entering SNF_Step " << endl;
192 //print(S); cout << endl; print(V);
193 int m=S.size();
194 matrix U2,V2;
195 while (!IsDiag(S))
196 { //cout << "\n\nColumn Reducing...\n";
197 HNF(S,V2,S);
198 S=transpose(S);
199 V=Mul(V,V2);
200 //cout << "\n\nRow Reducing...\n";
201 ident(U2,m);
202 HNF(S,U2,S);
203 S=transpose(S);
204 //cout << "Step " << endl;
205 //print(S); cout << endl; print(V);
206 }
207}
208
209
210

Callers 1

SNFFunction · 0.85

Calls 6

IsDiagFunction · 0.85
HNFFunction · 0.85
identFunction · 0.85
transposeFunction · 0.70
MulFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected