C# 클래스 NSoft.NFramework.Numerics.NaturalPermutation

파일 보기 프로젝트 열기: debop/NFramework

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
IsProperPermutation ( IEnumerable indices ) : bool

메소드 상세

FromInversions() 공개 정적인 메소드

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.
리턴 NaturalPermutation

Inverse() 공개 메소드

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

NaturalPermutation() 공개 메소드

public NaturalPermutation ( IEnumerable indices ) : System
indices IEnumerable
리턴 System

ToInversions() 공개 메소드

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

this() 공개 메소드

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