Permutation class

Class to represent a permutation for a subset of the natural numbers.

Constructors

Permutation(List<int> indices)
Initializes a new instance of the Permutation class within an array which represents where each integer is permuted too: indices[i] represents that integer i is permuted to location indices[i].
Permutation.fromInversions(List<int> inv)

Properties

dimension int
Gets the number of elements this permutation is over.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

inverse() Permutation
Computes the inverse of the permutation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toInversions() List<int>
Construct a sequence of inversions from the permutation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int idx) int
Computes where idx permutes too.