PermutationToString(String, IFormatProvider) Method

Converts the permutation to its string representation in the given format.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public string ToString(
	string format,
	IFormatProvider formatProvider
)

Parameters

format  String
A standard or custom permutation format string.
formatProvider  IFormatProvider
An object that provides culture-specific formatting information.

Return Value

String
The requested string representation of the permutation.

Implements

IFormattableToString(String, IFormatProvider)

Remarks

The standard permutation format strings are "M", which produces a map representation, and "C", which produces a cycle representation. For explanations of the map and cycle representations of a permutation, see Parse(String).

See Also