<spanclass="org-tuareg-font-lock-operator">|</span><spanclass="org-tuareg-font-lock-constructor">Triplet</span><spanclass="org-keyword">of</span><spanclass="org-tuareg-font-lock-operator">(</span>t <spanclass="org-tuareg-font-lock-operator">*</span> t <spanclass="org-tuareg-font-lock-operator">*</span> t<spanclass="org-tuareg-font-lock-operator">)</span>
<spanclass="org-tuareg-font-lock-operator">|</span><spanclass="org-tuareg-font-lock-constructor">Quartet</span><spanclass="org-keyword">of</span><spanclass="org-tuareg-font-lock-operator">(</span>t <spanclass="org-tuareg-font-lock-operator">*</span> t <spanclass="org-tuareg-font-lock-operator">*</span> t <spanclass="org-tuareg-font-lock-operator">*</span> t<spanclass="org-tuareg-font-lock-operator">)</span>
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_char</span><spanclass="org-tuareg-font-lock-operator">:</span> char <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_char</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> char
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_int</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_int</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_string</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> string
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">n_functions</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<tdclass="org-left">Array of <ahref="#orgdbccff9"><code>Zkey.t</code></a>, where each element is a a key associated with the the powers of \(x,y,z\).</td>
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-operator">+</span><spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-operator">-</span><spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
Printers can print as a string (default) or as an integer.
</p>
<divclass="org-src-container">
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp_string</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp_int</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_int</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_z</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Z.</span>t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">zero</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">is_zero</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> bool
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">numbits</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">testbit</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> bool
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">neg</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">shift_left</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">shift_right</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">shift_left_one</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">logor</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">logxor</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">logand</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">lognot</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">plus_one</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">minus_one</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">hamdist</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">trailing_zeros</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">popcount</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_list</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-label">?accu</span><spanclass="org-tuareg-font-lock-operator">:(</span>int list<spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> int list
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">permutations</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> t list
<tdclass="org-left"><code>shift_left_one size n</code> returns a new bit strings with the <code>n</code>-th bit set to one. It is equivalent as shifting <code>1</code> by <code>n</code> bits to the left, <code>size</code> is the total number of bits of the bit string</td>
<tdclass="org-left"><code>permutations m n</code> generates the list of all possible <code>n</code>-bit strings with <code>m</code> bits set to <code>1</code>. Algorithm adapted from <ahref="https://graphics.stanford.edu/~seander/bithacks.html#NextBitPermutation">Bit twiddling hacks</a></td>
</tr>
<tr>
<tdclass="org-left"><code>popcount</code></td>
<tdclass="org-left">Returns the number of bits set to one in the bit string</td>
</tr>
<tr>
<tdclass="org-left"><code>to_list</code></td>
<tdclass="org-left">Converts a bit string into a list of integers indicating the positions where the bits are set to <code>1</code>. The first value for the position is not <code>0</code> but <code>1</code></td>
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_float</span><spanclass="org-tuareg-font-lock-operator">:</span> float <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_float</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> float
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_int</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_int</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_string</span><spanclass="org-tuareg-font-lock-operator">:</span> string <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_string</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> string
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-operator">+</span><spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-operator">-</span><spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-operator">*</span><spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> float <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-operator">/</span><spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> float <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">is_null</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> bool
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
doc<spanclass="org-tuareg-font-lock-operator">=</span><spanclass="org-string">"Checks the input data"</span><spanclass="org-tuareg-font-lock-operator">;</span>
doc<spanclass="org-tuareg-font-lock-operator">=</span><spanclass="org-string">"Name of the file containing the basis set"</span><spanclass="org-tuareg-font-lock-operator">;</span><spanclass="org-tuareg-font-lock-operator">}</span><spanclass="org-tuareg-font-lock-operator">;</span>
<spanclass="org-tuareg-font-lock-operator">|</span><spanclass="org-tuareg-font-lock-constructor">Some</span> x <spanclass="org-tuareg-font-lock-operator">-></span> x
<spanclass="org-tuareg-font-lock-operator">|</span><spanclass="org-tuareg-font-lock-constructor">Some</span> n <spanclass="org-tuareg-font-lock-operator">-></span> int_of_string n
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">set_header_doc</span><spanclass="org-tuareg-font-lock-operator">:</span> string <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">set_description_doc</span><spanclass="org-tuareg-font-lock-operator">:</span> string <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">set_footer_doc</span><spanclass="org-tuareg-font-lock-operator">:</span> string <spanclass="org-tuareg-font-lock-operator">-></span> unit
</pre>
</div>
<p>
Functions to set the header, footer and main description of the
documentation provided by the <code>help</code> function:
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">anon_args</span><spanclass="org-tuareg-font-lock-operator">:</span> unit <spanclass="org-tuareg-font-lock-operator">-></span> string list
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">set_specs</span><spanclass="org-tuareg-font-lock-operator">:</span> description list <spanclass="org-tuareg-font-lock-operator">-></span> unit
</pre>
</div>
<p>
Sets the specifications of the current program from a list of
<spanclass="org-tuareg-font-lock-governing">type</span><spanclass="org-type">t</span><spanclass="org-tuareg-font-lock-operator">=</span> bohr point
<spanclass="org-tuareg-font-lock-governing">type</span><spanclass="org-type">axis</span><spanclass="org-tuareg-font-lock-operator">=</span><spanclass="org-tuareg-font-lock-constructor">X</span><spanclass="org-tuareg-font-lock-operator">|</span><spanclass="org-tuareg-font-lock-constructor">Y</span><spanclass="org-tuareg-font-lock-operator">|</span> Z
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">make</span><spanclass="org-tuareg-font-lock-operator">:</span> 'a point <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">make_angstrom</span><spanclass="org-tuareg-font-lock-operator">:</span> 'a point <spanclass="org-tuareg-font-lock-operator">-></span> angstrom point
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">zero</span><spanclass="org-tuareg-font-lock-operator">:</span> bohr point
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">bohr_to_angstrom</span><spanclass="org-tuareg-font-lock-operator">:</span> bohr point <spanclass="org-tuareg-font-lock-operator">-></span> angstrom point
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">angstrom_to_bohr</span><spanclass="org-tuareg-font-lock-operator">:</span> angstrom point <spanclass="org-tuareg-font-lock-operator">-></span> bohr point
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">neg</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">get</span><spanclass="org-tuareg-font-lock-operator">:</span> axis <spanclass="org-tuareg-font-lock-operator">-></span> bohr point <spanclass="org-tuareg-font-lock-operator">-></span> float
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">dot</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> float
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">norm</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> float
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-operator">|</span>. <spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">:</span> float <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-operator">|+</span><spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-operator">|-</span><spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp_bohr</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp_angstrom</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_float</span><spanclass="org-tuareg-font-lock-operator">:</span> float <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">unsafe_of_float</span><spanclass="org-tuareg-font-lock-operator">:</span> float <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_float</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> float
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_string</span><spanclass="org-tuareg-font-lock-operator">:</span> string <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_string</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> string
</pre>
</div>
<p>
The <code>of_float</code> function checks that the float is non-negative.
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_int_tuple</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">*</span> int <spanclass="org-tuareg-font-lock-operator">*</span> int <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_int_tuple</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">*</span> int <spanclass="org-tuareg-font-lock-operator">*</span> int
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">get</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Coordinate.</span>axis <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">incr</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Coordinate.</span>axis <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">decr</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Coordinate.</span>axis <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<tdclass="org-left">Returns a new <ahref="#org63557b0"><code>Powers.t</code></a> with the power on the given axis decremented. As opposed to <code>of_int_tuple</code>, the values may become negative</td>
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_string</span><spanclass="org-tuareg-font-lock-operator">:</span> string <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_string</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> string
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_int_list</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int list
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">other</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">popcnt</span><spanclass="org-tuareg-font-lock-operator">:</span> int64 <spanclass="org-tuareg-font-lock-operator">-></span> int
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">trailz</span><spanclass="org-tuareg-font-lock-operator">:</span> int64 <spanclass="org-tuareg-font-lock-operator">-></span> int
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">leadz</span><spanclass="org-tuareg-font-lock-operator">:</span> int64 <spanclass="org-tuareg-font-lock-operator">-></span> int
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">fact</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> float
<spanclass="org-comment-delimiter">(* </span><spanclass="org-comment">@raise Invalid_argument for negative arguments or arguments >100. </span><spanclass="org-comment-delimiter">*)</span>
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">binom</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> int
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">binom_float</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> float
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pow</span><spanclass="org-tuareg-font-lock-operator">:</span> float <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> float
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">float_of_int_fast</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> float
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_some</span><spanclass="org-tuareg-font-lock-operator">:</span> 'a option <spanclass="org-tuareg-font-lock-operator">-></span> 'a
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">not_implemented</span><spanclass="org-tuareg-font-lock-operator">:</span> string <spanclass="org-tuareg-font-lock-operator">-></span> 'a
<tdclass="org-left">Binomial coefficient. <code>binom n k</code> = \(C_n^k\)</td>
</tr>
<tr>
<tdclass="org-left"><code>binom_float</code></td>
<tdclass="org-left">float variant of <code>binom</code></td>
</tr>
<tr>
<tdclass="org-left"><code>pow</code></td>
<tdclass="org-left">Fast implementation of the power function for small integer powers</td>
</tr>
<tr>
<tdclass="org-left"><code>chop</code></td>
<tdclass="org-left">In <code>chop a f</code>, evaluate <code>f</code> only if the absolute value of <code>a</code> is larger than <code>Constants.epsilon</code>, and return <code>a *. f ()</code>.</td>
<spanclass="org-comment-delimiter">(* </span><spanclass="org-comment">@raise Failure when the calculation doesn't converge. </span><spanclass="org-comment-delimiter">*)</span>
</pre>
</div>
<p>
The lower <ahref="https://en.wikipedia.org/wiki/Incomplete_gamma_function">Incomplete Gamma function</a> is implemented :
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">list_some</span><spanclass="org-tuareg-font-lock-operator">:</span> 'a option list <spanclass="org-tuareg-font-lock-operator">-></span> 'a list
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">list_range</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> int list
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">list_pack</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> 'a list <spanclass="org-tuareg-font-lock-operator">-></span> 'a list list
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">array_range</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> int array
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">stream_range</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-module">Stream.</span>t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">stream_to_list</span><spanclass="org-tuareg-font-lock-operator">:</span> 'a <spanclass="org-tuareg-font-lock-module">Stream.</span>t <spanclass="org-tuareg-font-lock-operator">-></span> 'a list
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">stream_fold</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-operator">(</span>'a <spanclass="org-tuareg-font-lock-operator">-></span> 'b <spanclass="org-tuareg-font-lock-operator">-></span> 'a<spanclass="org-tuareg-font-lock-operator">)</span><spanclass="org-tuareg-font-lock-operator">-></span> 'a <spanclass="org-tuareg-font-lock-operator">-></span> 'b <spanclass="org-tuareg-font-lock-module">Stream.</span>t <spanclass="org-tuareg-font-lock-operator">-></span> 'a
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp_float_array_size</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> float array <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp_float_array</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> float array <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp_float_2darray_size</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> float array array <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp_float_2darray</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> float array array <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp_bitstring</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span><spanclass="org-tuareg-font-lock-module">Z.</span>t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<spanclass="org-tuareg-font-lock-operator">|</span><spanclass="org-tuareg-font-lock-constructor">Four</span><spanclass="org-keyword">of</span><spanclass="org-tuareg-font-lock-operator">(</span>int <spanclass="org-tuareg-font-lock-operator">*</span> int <spanclass="org-tuareg-font-lock-operator">*</span> int <spanclass="org-tuareg-font-lock-operator">*</span> int<spanclass="org-tuareg-font-lock-operator">)</span>
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_powers_three</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_powers_six</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_powers_nine</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_powers_twelve</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span><spanclass="org-tuareg-font-lock-module">Powers.</span>t <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_powers</span><spanclass="org-tuareg-font-lock-operator">:</span> kind <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_int_array</span><spanclass="org-tuareg-font-lock-operator">:</span> int array <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">of_int_four</span><spanclass="org-tuareg-font-lock-operator">:</span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> int <spanclass="org-tuareg-font-lock-operator">-></span> t
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_int_array</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int array
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_powers</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> kind
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">to_string</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> string
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">hash</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">equal</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> bool
<spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">compare</span><spanclass="org-tuareg-font-lock-operator">:</span> t <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> int
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">val</span><spanclass="org-function-name">pp</span><spanclass="org-tuareg-font-lock-operator">:</span><spanclass="org-tuareg-font-lock-module">Format.</span>formatter <spanclass="org-tuareg-font-lock-operator">-></span> t <spanclass="org-tuareg-font-lock-operator">-></span> unit
<preclass="src src-ocaml"><spanclass="org-tuareg-font-lock-governing">include</span><spanclass="org-tuareg-font-lock-governing">module type of</span><spanclass="org-tuareg-font-lock-module">Hashtbl.Make</span><spanclass="org-tuareg-font-lock-operator">(</span><spanclass="org-tuareg-font-lock-constructor">Zkey</span><spanclass="org-tuareg-font-lock-operator">)</span>