Back to Sparse Direct Solver (SuperLU)
slu.permutation.invertPermutation
Compute the inverse of a permutation.
Syntax
slu.permutation.invertPermutation(perm)
Description
Compute the inverse of a permutation. Given a permutation P where P[i] = j means element i maps to position j, computes the inverse permutation P^{-1} where P^{-1}[j] = i.
Parameters
| Name | Description |
|---|---|
| perm | - Permutation array |
Returns
Int32Array