Permutations of N things taken k at a time, i.e., k-permutations of N.
It’s also known as “partial permutations”.
Parameters: | N : int, ndarray
k : int, ndarray
exact : bool, optional
|
---|---|
Returns: | val : int, ndarray
|
Notes
Examples
>>> k = np.array([3, 4])
>>> n = np.array([10, 10])
>>> perm(n, k)
array([ 720., 5040.])
>>> perm(10, 3, exact=True)
720