Skip to content

Commit

Permalink
build based on fcfc9c1
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Oct 2, 2023
1 parent fee7157 commit d8b4082
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 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-09-26T17:54:40","documenter_version":"1.0.1"}}
{"documenter":{"julia_version":"1.9.3","generation_timestamp":"2023-10-02T08:33:46","documenter_version":"1.1.0"}}
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.0.1 on <span class="colophon-date" title="Tuesday 26 September 2023 17:54">Tuesday 26 September 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.0 on <span class="colophon-date" title="Monday 2 October 2023 08:33">Monday 2 October 2023</span>. Using Julia version 1.9.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/custom/custom-functional-form/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
function ReactiveMP.constrain_form(::MeanPrecisionFormConstraint, distribution::DistProduct)
# DistProduct is the special case, read about this type more in the corresponding documentation section
# ...
end</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../">« Introduction</a><a class="docs-footer-nextpage" href="../custom-addons/">Custom addons »</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.0.1 on <span class="colophon-date" title="Tuesday 26 September 2023 17:54">Tuesday 26 September 2023</span>. Using Julia version 1.9.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
end</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../">« Introduction</a><a class="docs-footer-nextpage" href="../custom-addons/">Custom addons »</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.0 on <span class="colophon-date" title="Monday 2 October 2023 08:33">Monday 2 October 2023</span>. Using Julia version 1.9.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit d8b4082

Please sign in to comment.