File tree 4 files changed +8
-8
lines changed 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { _transpose } from './_transpose' ;
4
4
* Applies a given sequence (in the given order) of transpositions (given as
5
5
* index tuples) to a given permutation. The permutation is modified in place.
6
6
*
7
- * @param transpositions The given transpositions to apply.
8
- * @param sigma The permutation to apply the transpositions to.
7
+ * @param { Iterable } transpositions The given transpositions to apply.
8
+ * @param { Array } sigma The permutation to apply the transpositions to.
9
9
*/
10
10
export function _apply ( transpositions , sigma ) {
11
11
Original file line number Diff line number Diff line change 3
3
* Fills an input array with the identity permutation on input <code>n</code>
4
4
* elements.
5
5
*
6
- * @param sigma The input array.
7
- * @param n The size to use for the permutation.
6
+ * @param { Array } sigma The input array.
7
+ * @param { Number } n The size to use for the permutation.
8
8
*/
9
9
export function _identity ( sigma , n ) {
10
10
Original file line number Diff line number Diff line change 6
6
* example, for computing the cycle decomposition of an input permutation (see
7
7
* {@link _cycles}, {@link cycles}).
8
8
*
9
- * @param n The given size.
10
- * @param array The input array.
9
+ * @param { Number } n The given size.
10
+ * @param { Array } array The input array.
11
11
*/
12
12
export function _used ( n , array ) {
13
13
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import { _apply } from './_apply' ;
5
5
* Apply a given sequence (in the given order) of transpositions (given as
6
6
* index tuples) to the identity permutation over input <code>n</code> elements.
7
7
*
8
- * @param n The size of the identity permutation to apply the transpositions
8
+ * @param { Number } n The size of the identity permutation to apply the transpositions
9
9
* to.
10
- * @param transpositions The given transpositions to apply.
10
+ * @param { Iterable } transpositions The given transpositions to apply.
11
11
* @returns {Array } The resulting permutation.
12
12
*/
13
13
export function apply ( n , transpositions ) {
You can’t perform that action at this time.
0 commit comments