Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 2e1eaae53aaacac75419358aca943141 > files > 210

ocaml-facile-doc-1.1-6.mga4.noarch.rpm

<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="Start" href="index.html">
<link rel="previous" href="Alldiff.html">
<link rel="next" href="Interval.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Domain" rel="Chapter" href="Domain.html">
<link title="SetDomain" rel="Chapter" href="SetDomain.html">
<link title="Stak" rel="Chapter" href="Stak.html">
<link title="Data" rel="Chapter" href="Data.html">
<link title="Cstr" rel="Chapter" href="Cstr.html">
<link title="Var" rel="Chapter" href="Var.html">
<link title="Invariant" rel="Chapter" href="Invariant.html">
<link title="Reify" rel="Chapter" href="Reify.html">
<link title="Arith" rel="Chapter" href="Arith.html">
<link title="Conjunto" rel="Chapter" href="Conjunto.html">
<link title="Goals" rel="Chapter" href="Goals.html">
<link title="FdArray" rel="Chapter" href="FdArray.html">
<link title="Gcc" rel="Chapter" href="Gcc.html">
<link title="Alldiff" rel="Chapter" href="Alldiff.html">
<link title="Sorting" rel="Chapter" href="Sorting.html">
<link title="Interval" rel="Chapter" href="Interval.html"><title>Sorting</title>
</head>
<body>
<div class="navbar"><a href="Alldiff.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Interval.html">Next</a>
</div>
<center><h1>Module <a href="type_Sorting.html">Sorting</a></h1></center>
<br>
<pre><span class="keyword">module</span> Sorting: <code class="code">sig</code> <a href="Sorting.html">..</a> <code class="code">end</code></pre>Sorting Constraint<br>
<hr width="100%">
<pre><span class="keyword">val</span> <a name="VALsort"></a>sort : <code class="type">Var.Fd.t array -> Var.Fd.t array</code></pre><div class="info">
<code class="code">sort a</code> returns an array of variables constrained to be the variables
     in <code class="code">a</code> sorted in increasing order.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALsortp"></a>sortp : <code class="type">Var.Fd.t array -> Var.Fd.t array * Var.Fd.t array</code></pre><div class="info">
<code class="code">sortp a</code> same as <code class="code">sort</code> but returns a couple <code class="code">(sorted, perm)</code>
     where <code class="code">sorted</code> is the array of sorted variables and <code class="code">perm</code> is an
     array of variables constrained to be the permutation between <code class="code">a</code> and
     <code class="code">sorted</code>, i.e. <code class="code">a.(i) = sorted.(perm.(i))</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALcstr"></a>cstr : <code class="type">Var.Fd.t array -> ?p:Var.Fd.t array option -> Var.Fd.t array -> <a href="Cstr.html#TYPEt">Cstr.t</a></code></pre><div class="info">
<code class="code">cstr a (?perm:None) sorted</code> returns the constraint ensuring that
   <code class="code">sorted</code> is the result of sorting array <code class="code">a</code> according to the
   permutation <code class="code">perm</code>. <code class="code">perm</code> default value is <code class="code">None</code>, meaning the
   argument is irrelevant. Raises <code class="code">Invalid_argument</code> if
   arrays have incompatible length. Not reifiable.<br>
</div>
</body></html>