scipy.sparse.linalg.SuperLU.perm_c

SuperLU.perm_c

排列Pc表示为索引数组。

列置换矩阵可以通过以下方式重建:

>>> Pc = np.zeros((n, n))
>>> Pc[np.arange(n), perm_c] = 1