Back to Scientific Computing (SciPy)
sp.special.perm
Permutations (k-permutations of N).
Syntax
sp.special.perm(N, k, options?)
Description
Permutations (k-permutations of N). Computes P(N, k) = N! / (N-k)!, the number of ways to arrange k items from N items where order matters.
Parameters
| Name | Description |
|---|---|
| N | - Number of items (integer or array) |
| k | - Number of items to arrange (integer or array) |
| options(optional) | - Configuration options |
Returns
Promise<number | NDArray>