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.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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