C# Class NSoft.NFramework.Numerics.NaturalPermutation

显示文件 Open project: debop/NFramework

Public Methods

Method 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

Method Description
IsProperPermutation ( IEnumerable indices ) : bool

Method Details

FromInversions() public static method

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.
return NaturalPermutation

Inverse() public method

Computes the inverse of the permutation.
public Inverse ( ) : NaturalPermutation
return NaturalPermutation

NaturalPermutation() public method

public NaturalPermutation ( IEnumerable indices ) : System
indices IEnumerable
return System

ToInversions() public method

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

this() public method

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