Math.NET Numerics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
3.7 KiB

<HTML><HEAD><TITLE>Microsoft.FSharp.Compatibility.Permutation</TITLE><link rel="stylesheet" type="text/css"href="../msdn.css"></link></HEAD><BODY>
<br><dl>
<dt></dt><dd>
<h1>[<a href='../namespaces.html'>Home</a>] Module <a href='Microsoft.FSharp.Compatibility.html'>Microsoft.FSharp.Compatibility</a>.Permutation </h1><br>
</dd>
<dt></dt><dd>
<table>
<tr valign='top'><td>
<dt><h3>Values</h3></dt><dd>
<table width="100%%">
<tr><th width=60%>Value</th><th>Description</th></tr>
<tr valign="top"><td><pre>val identity : <a href='Microsoft.FSharp.Compatibility.type__permutation.html'>permutation</a></pre></td><td><summary>
The identity permutation over any size
</summary></td></tr>
<tr valign="top"><td><pre>val inverse : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='Microsoft.FSharp.Compatibility.type__permutation.html'>permutation</a> -> <a href='Microsoft.FSharp.Compatibility.type__permutation.html'>permutation</a></pre></td><td></td></tr>
<tr valign="top"><td><pre>val of_array : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__array-1.html'>array</a> -> <a href='Microsoft.FSharp.Compatibility.type__permutation.html'>permutation</a></pre></td><td><summary>
Create a permutation by specifying the result of permuting [| 0 .. n-1 |]. For example,
Permutation.of_array [| 1;2;0 |] specifies a permutation that rotates all elements right one place.
</summary></td></tr>
<tr valign="top"><td><pre>val of_pairs : <a href='../FSharp.Core/Microsoft.FSharp.Collections.type__seq-1.html'>seq</a>&lt;<a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> * <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a>&gt; -> <a href='Microsoft.FSharp.Compatibility.type__permutation.html'>permutation</a></pre></td><td><summary>
Create a permutation by specifying (source,destination) index pairs. For example,
Permutation(3,[ (0,2);(1,0); (2,1) ]) specifies a permutation that rotates
all elements left one place. Not all elements need be given, e.g.
Permutation(5,[ (1,2);(2,1) |]) specifies a permutation that swaps elements at indexes
1 and 2.
</summary></td></tr>
<tr valign="top"><td><pre>val reversal : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='Microsoft.FSharp.Compatibility.type__permutation.html'>permutation</a></pre></td><td><summary>
Return a permutation that, when applied, maps index 0 to size-1, size-1 to 0 etc.
</summary></td></tr>
<tr valign="top"><td><pre>val rotation : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='Microsoft.FSharp.Compatibility.type__permutation.html'>permutation</a></pre></td><td><summary>
Return a permutation that rotates right by the given distance. If the distance
is negative then a left rotation results.
</summary></td></tr>
<tr valign="top"><td><pre>val swap : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a> -> <a href='Microsoft.FSharp.Compatibility.type__permutation.html'>permutation</a></pre></td><td><summary>
Return a swaps the given two elements over any size
</summary></td></tr>
</table>
</dd>
</td></tr>
<tr valign='top'><td>
<dt><h3>See Also</h3></dt><dd>
<a href="Microsoft.FSharp.Compatibility.html">Microsoft.FSharp.Compatibility</a> </dd>
</td></tr>
</table>
</dd>
</dl>
<br /> <br/><p><i>Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using <a href='http://research.microsoft.com/fsharp/'>F# Programming Language</a> version 1.9.6.16</i></p>
</BODY></HTML>