Function lbcrypto::ExtractShiftedDiagonal

Function Documentation

std::vector<std::complex<double>> lbcrypto::ExtractShiftedDiagonal(const std::vector<std::vector<std::complex<double>>> &A, int index)

Extracts shifted diagonal of matrix A.

Parameters
  • &A – square linear map.

  • index – the index by which the diagonal shifted.

Returns

the vector corresponding to the shifted diagonal