We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f2ea2 commit 99d99eeCopy full SHA for 99d99ee
src/org/cicirello/permutations/Permutation.java
@@ -36,7 +36,7 @@
36
* manipulate permutations in a variety of ways.
37
*
38
* @author <a href=https://www.cicirello.org/ target=_top>Vincent A. Cicirello</a>, <a href=https://www.cicirello.org/ target=_top>https://www.cicirello.org/</a>
39
- * @version 1.19.5.10
+ * @version 1.19.5.13
40
* @since 1.0
41
*/
42
public final class Permutation implements Serializable, Iterable<Permutation>
@@ -274,7 +274,9 @@ public int[] getInverse() {
274
* @since 1.3
275
276
public Permutation getInversePermutation() {
277
- return new Permutation(getInverse());
+ Permutation copy = new Permutation(this);
278
+ copy.invert();
279
+ return copy;
280
}
281
282
/**
0 commit comments