duplication_matrix_fast

secrecy_capacity.duplication_matrix_fast(n)

Duplication matrix. Implementation from: https://www.mathworks.com/matlabcentral/answers/473737-efficient-algorithm-for-a-duplication-matrix