SciPy

This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.sparse.linalg.SuperLU.perm_c

SuperLU.perm_c

Permutation Pc represented as an array of indices.

The column permutation matrix can be reconstructed via:

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