<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Instance (libabsolute.Libabsolute__.Instance)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> â€“ <a href="../../index.html">libabsolute</a> &#x00BB; <a href="../index.html">Libabsolute__</a> &#x00BB; Instance</nav><h1>Module <code>Libabsolute__.Instance</code></h1><nav class="toc"><ul><li><a href="#constructors">Constructors</a></li><li><a href="#operations">Operations</a></li><li><a href="#printing">Printing</a></li></ul></nav></header><aside><p>This module defines the type of points (also called instances), i.e mappings from variables to rational coordinates.</p></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code><code> = <span><a href="../../Libabsolute/Q/index.html#type-t">Libabsolute.Q.t</a> <a href="../../Libabsolute/Tools/VarMap/index.html#type-t">Libabsolute.Tools.VarMap.t</a></span></code></dt><dd><p>the instance type</p></dd></dl><section><header><h2 id="constructors"><a href="#constructors" class="anchor"></a>Constructors</h2></header><dl><dt class="spec value" id="val-of_list"><a href="#val-of_list" class="anchor"></a><code><span class="keyword">val</span> of_list : <span><span>(string * Mpqf.t)</span> list</span> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>Builds an instance from a list of bindings</p></dd></dl></section><section><header><h2 id="operations"><a href="#operations" class="anchor"></a>Operations</h2></header><dl><dt class="spec value" id="val-translate"><a href="#val-translate" class="anchor"></a><code><span class="keyword">val</span> translate : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>Translation of an instance by a vector. <code>translate i v</code> builds the point corresponding the translation of i by v. Useful for gradient descent techniques</p></dd></dl><dl><dt class="spec value" id="val-to_apron_gen"><a href="#val-to_apron_gen" class="anchor"></a><code><span class="keyword">val</span> to_apron_gen : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> Apron.Generator1.t</code></dt><dd><p>conversion to apron generator</p></dd></dl></section><section><header><h2 id="printing"><a href="#printing" class="anchor"></a>Printing</h2></header><dl><dt class="spec value" id="val-print"><a href="#val-print" class="anchor"></a><code><span class="keyword">val</span> print : Stdlib.Format.formatter <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> unit</code></dt><dd><p>printer</p></dd></dl><dl><dt class="spec value" id="val-to_string"><a href="#val-to_string" class="anchor"></a><code><span class="keyword">val</span> to_string : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> string</code></dt><dd><p>Conversion to a string</p></dd></dl></section></div></body></html>