Skip to content

Commit

Permalink
build based on 7eee68b
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Jul 12, 2023
1 parent 3f04729 commit 2af89e4
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 27 deletions.
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></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Monday 10 July 2023 08:37">Monday 10 July 2023</span>. Using Julia version 1.9.2.</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></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Wednesday 12 July 2023 15:50">Wednesday 12 July 2023</span>. Using Julia version 1.9.2.</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.

2 changes: 1 addition & 1 deletion dev/extra/contributing/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 2af89e4

Please sign in to comment.