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.

2 lines
5.5 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferModules__CostDomain (infer.InferModules__CostDomain)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc %%VERSION%%"/><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">infer</a> &#x00BB; InferModules__CostDomain</nav><h1>Module <code>InferModules__CostDomain</code></h1></header><div class="spec module" id="module-F"><a href="#module-F" class="anchor"></a><code><span class="keyword">module</span> F = Stdlib.Format</code></div><div class="spec module" id="module-BasicCost"><a href="#module-BasicCost" class="anchor"></a><code><span class="keyword">module</span> BasicCost = <a href="../InferModules/Polynomials/index.html#module-NonNegativePolynomial">InferModules.Polynomials.NonNegativePolynomial</a></code></div><dl><dt class="spec module" id="module-VariantCostMap"><a href="#module-VariantCostMap" class="anchor"></a><code><span class="keyword">module</span> <a href="VariantCostMap/index.html">VariantCostMap</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Module to simulate a record <code>OperationCost:BasicCost.t; AllocationCost: BasicCost.t; IOCost:BasicCost.t</code> with a map <code>OperationCost, AllocationCost, IOCost</code> -&gt; BasicCost.t</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code><code> = <a href="VariantCostMap/index.html#type-t">VariantCostMap.t</a></code></dt><dt class="spec type" id="type-summary"><a href="#type-summary" class="anchor"></a><code><span class="keyword">type</span> summary</code><code> = </code><code>{</code><table class="record"><tr id="type-summary.post" class="anchored"><td class="def field"><a href="#type-summary.post" class="anchor"></a><code>post : <a href="index.html#type-t">t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-pp_summary"><a href="#val-pp_summary" class="anchor"></a><code><span class="keyword">val</span> pp_summary : <a href="index.html#module-F">F</a>.formatter <span>&#45;&gt;</span> <a href="index.html#type-summary">summary</a> <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-get_cost_kind"><a href="#val-get_cost_kind" class="anchor"></a><code><span class="keyword">val</span> get_cost_kind : <a href="VariantCostMap/index.html#type-key">VariantCostMap.key</a> <span>&#45;&gt;</span> <a href="VariantCostMap/index.html#type-t">VariantCostMap.t</a> <span>&#45;&gt;</span> <a href="../InferModules__Polynomials/NonNegativePolynomial/index.html#type-t">BasicCost.t</a></code></dt><dt class="spec value" id="val-get_operation_cost"><a href="#val-get_operation_cost" class="anchor"></a><code><span class="keyword">val</span> get_operation_cost : <a href="VariantCostMap/index.html#type-t">VariantCostMap.t</a> <span>&#45;&gt;</span> <a href="../InferModules__Polynomials/NonNegativePolynomial/index.html#type-t">BasicCost.t</a></code></dt><dt class="spec value" id="val-map"><a href="#val-map" class="anchor"></a><code><span class="keyword">val</span> map : <span>f:<span>(<a href="VariantCostMap/index.html#type-value">VariantCostMap.value</a> <span>&#45;&gt;</span> <a href="VariantCostMap/index.html#type-value">VariantCostMap.value</a>)</span></span> <span>&#45;&gt;</span> <a href="VariantCostMap/index.html#type-t">VariantCostMap.t</a> <span>&#45;&gt;</span> <a href="VariantCostMap/index.html#type-t">VariantCostMap.t</a></code></dt><dt class="spec value" id="val-zero_record"><a href="#val-zero_record" class="anchor"></a><code><span class="keyword">val</span> zero_record : <a href="VariantCostMap/index.html#type-t">VariantCostMap.t</a></code></dt><dt class="spec value" id="val-mult_by_scalar"><a href="#val-mult_by_scalar" class="anchor"></a><code><span class="key