pygsti.tools.matrixmod2.fix_top#
- fix_top(a)#
Computes the permutation matrix P such that the [1:t,1:t] submatrix of P a P is invertible.
- Parameters:
a (numpy.ndarray) – A symmetric binary matrix with ones along the diagonal.
- Return type:
numpy.ndarray