Function lbcrypto::ExtractShiftedDiagonal
Defined in File ckksrns-utils.cpp
Function Documentation
-
std::vector<std::complex<double>> lbcrypto::ExtractShiftedDiagonal(const std::vector<std::vector<std::complex<double>>> &A, int i)
Extracts shifted diagonal of matrix A.
- Parameters
A – square linear map.
i – the index by which the diagonal is shifted.
- Returns
the vector corresponding to the shifted diagonal