Skip to content

Commit

Permalink
build based on ec2d726
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Oct 16, 2023
1 parent 0bcac1a commit 8740b03
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.9.3","generation_timestamp":"2023-10-16T08:38:53","documenter_version":"1.1.1"}}
{"documenter":{"julia_version":"1.9.3","generation_timestamp":"2023-10-16T11:13:24","documenter_version":"1.1.1"}}
2 changes: 1 addition & 1 deletion dev/custom/custom-addons/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
end
</code></pre><h3 id="Step-3:-Computing-products"><a class="docs-heading-anchor" href="#Step-3:-Computing-products">Step 3: Computing products</a><a id="Step-3:-Computing-products-1"></a><a class="docs-heading-anchor-permalink" href="#Step-3:-Computing-products" title="Permalink"></a></h3><p>The goal is to update the <code>AddonCount</code> structure when we multiply 2 messages. As a result, we need to write a function that allows us to define this behaviour. This function is called <code>multiply_addons</code> and accepts 5 arguments. In our example this becomes</p><pre><code class="language-julia hljs">function multiply_addons(left_addon::AddonCount, right_addon::AddonCount, new_dist, left_dist, right_dist)
return AddonCount(left_addon.count + right_addon.count + 1)
end</code></pre><p>here we add the number of operations from the addons that are being multiplied and we add one (for the current operation). we are aware that this is likely not valid for iterative message passing schemes, but it still serves as a nice example. the <code>left_addon</code> and <code>right_addon</code> argument specify the <code>addoncount</code> objects that are being multiplied. corresponding to these addons, there are the distributions <code>left_dist</code> and <code>right_dist</code>, which might contain information for computing the product. the new distribution <code>new_dist ∝ left_dist * right_dist</code> is also passed along for potentially reusing the result of earlier computations.</p><h3 id="More-information"><a class="docs-heading-anchor" href="#More-information">More information</a><a id="More-information-1"></a><a class="docs-heading-anchor-permalink" href="#More-information" title="Permalink"></a></h3><p>For more advanced information check the implementation of the log-scale or memory addons.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../custom-functional-form/">« Custom functional form</a><a class="docs-footer-nextpage" href="../../lib/message/">Messages »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.1.1 on <span class="colophon-date" title="Monday 16 October 2023 08:38">Monday 16 October 2023</span>. Using Julia version 1.9.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
end</code></pre><p>here we add the number of operations from the addons that are being multiplied and we add one (for the current operation). we are aware that this is likely not valid for iterative message passing schemes, but it still serves as a nice example. the <code>left_addon</code> and <code>right_addon</code> argument specify the <code>addoncount</code> objects that are being multiplied. corresponding to these addons, there are the distributions <code>left_dist</code> and <code>right_dist</code>, which might contain information for computing the product. the new distribution <code>new_dist ∝ left_dist * right_dist</code> is also passed along for potentially reusing the result of earlier computations.</p><h3 id="More-information"><a class="docs-heading-anchor" href="#More-information">More information</a><a id="More-information-1"></a><a class="docs-heading-anchor-permalink" href="#More-information" title="Permalink"></a></h3><p>For more advanced information check the implementation of the log-scale or memory addons.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../custom-functional-form/">« Custom functional form</a><a class="docs-footer-nextpage" href="../../lib/message/">Messages »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.1.1 on <span class="colophon-date" title="Monday 16 October 2023 11:13">Monday 16 October 2023</span>. Using Julia version 1.9.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
4 changes: 2 additions & 2 deletions dev/custom/custom-functional-form/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 8740b03

Please sign in to comment.