C# Class NSoft.NFramework.Numerics.NaturalPermutation

Afficher le fichier Open project: debop/NFramework

Méthodes publiques

Méthode Description
FromInversions ( int inv ) : NaturalPermutation

Construct an array from a sequence of inversions.

Inverse ( ) : NaturalPermutation

Computes the inverse of the permutation.

NaturalPermutation ( IEnumerable indices ) : System
ToInversions ( ) : int[]

Construct a sequence of inversions from the permutation.

this ( int idx ) : int

Computes where idx permutes too.

Private Methods

Méthode Description
IsProperPermutation ( IEnumerable indices ) : bool

Method Details

FromInversions() public static méthode

Construct an array from a sequence of inversions.
public static FromInversions ( int inv ) : NaturalPermutation
inv int The set of inversions to construct the permutation from.
Résultat NaturalPermutation

Inverse() public méthode

Computes the inverse of the permutation.
public Inverse ( ) : NaturalPermutation
Résultat NaturalPermutation

NaturalPermutation() public méthode

public NaturalPermutation ( IEnumerable indices ) : System
indices IEnumerable
Résultat System

ToInversions() public méthode

Construct a sequence of inversions from the permutation.
public ToInversions ( ) : int[]
Résultat int[]

this() public méthode

Computes where idx permutes too.
public this ( int idx ) : int
idx int The index to permute from.
Résultat int