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

Function transpose

FHE/Matrix.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37matrix transpose(const matrix& A)
38{
39 int m=A.size(),n=A[0].size();
40 matrix B(n, vector<bigint>(m) );
41 for (int i=0; i<m; i++)
42 { for (int j=0; j<n; j++)
43 { B[j][i]=A[i][j]; }
44 }
45 return B;
46}
47
48
49matrix Mul(const matrix& A,const matrix& B)

Callers 2

SNF_StepFunction · 0.70
extend_correlatedMethod · 0.50

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected