Back to Sparse Direct Solver (SuperLU)
slu.permutation.permuteVector
Apply a permutation to a vector.
Syntax
slu.permutation.permuteVector(x, perm)
Description
Apply a permutation to a vector. Computes y = P * x where P is a permutation matrix. y[perm[i]] = x[i] for all i.
Parameters
| Name | Description |
|---|---|
| x | - Input vector |
| perm | - Permutation array |
Returns
Float64Array