Skip to content

Commit

Permalink
build based on c4b8b5f
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Aug 3, 2023
1 parent 0c85a2a commit 65453ab
Show file tree
Hide file tree
Showing 26 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion dev/accumulators/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
intersect(a1, a2) # multiset intersection (sometimes called infimum or greatest common divisor)
# returns a new multiset with the counts being the lowest of those in `a1` or `a2`.
# Note that this means things not occurring in both with be removed (count zero).
# `min(a1[v], a2[v])` over all `v` in the universe</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../fenwick/">« Fenwick Tree</a><a class="docs-footer-nextpage" href="../disjoint_sets/">Disjoint-Sets »</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 19 July 2023 15:57">Wednesday 19 July 2023</span>. Using Julia version 1.9.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
# `min(a1[v], a2[v])` over all `v` in the universe</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../fenwick/">« Fenwick Tree</a><a class="docs-footer-nextpage" href="../disjoint_sets/">Disjoint-Sets »</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="Thursday 3 August 2023 13:27">Thursday 3 August 2023</span>. Using Julia version 1.9.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
6 changes: 3 additions & 3 deletions dev/avl_tree/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/circ_buffer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
eltype(cb) # return type of items
cb[1] # get the element at the front
cb[end] # get the element at the back
fill!(cb, data) # grows the buffer up-to capacity, and fills it entirely, preserving existing elements.</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../deque/">« Deque</a><a class="docs-footer-nextpage" href="../circ_deque/">CircularDeque »</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 19 July 2023 15:57">Wednesday 19 July 2023</span>. Using Julia version 1.9.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
fill!(cb, data) # grows the buffer up-to capacity, and fills it entirely, preserving existing elements.</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../deque/">« Deque</a><a class="docs-footer-nextpage" href="../circ_deque/">CircularDeque »</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="Thursday 3 August 2023 13:27">Thursday 3 August 2023</span>. Using Julia version 1.9.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/circ_deque/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
popfirst!(a) # remove an element from the front
first(a) # get the element at the front
last(a) # get the element at the back
eltype(a) # return type of items</code></pre><p><em>Note:</em> Julia&#39;s <code>Vector</code> type also provides this interface, and thus can be used as a deque. However, the <code>CircularDeque</code> type in this package is implemented as a circular buffer, and thus avoids copying elements when modifications are made to the front of the vector.</p><p>Benchmarks show that the performance of <code>CircularDeque</code> is several times faster than <code>Deque</code>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../circ_buffer/">« CircularBuffer</a><a class="docs-footer-nextpage" href="../stack/">Stack »</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 19 July 2023 15:57">Wednesday 19 July 2023</span>. Using Julia version 1.9.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
eltype(a) # return type of items</code></pre><p><em>Note:</em> Julia&#39;s <code>Vector</code> type also provides this interface, and thus can be used as a deque. However, the <code>CircularDeque</code> type in this package is implemented as a circular buffer, and thus avoids copying elements when modifications are made to the front of the vector.</p><p>Benchmarks show that the performance of <code>CircularDeque</code> is several times faster than <code>Deque</code>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../circ_buffer/">« CircularBuffer</a><a class="docs-footer-nextpage" href="../stack/">Stack »</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="Thursday 3 August 2023 13:27">Thursday 3 August 2023</span>. Using Julia version 1.9.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/default_dict/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
sleep(len)
return len
end</code><code class="nohighlight hljs ansi" style="display:block;">DefaultDict{AbstractString, Int64, Main.var&quot;#9#10&quot;}()</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;hi&quot;] # slow</code><code class="nohighlight hljs ansi" style="display:block;">2</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;ho&quot;] # slow</code><code class="nohighlight hljs ansi" style="display:block;">2</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;hi&quot;] # fast</code><code class="nohighlight hljs ansi" style="display:block;">2</code></pre><p>Note that in the second-last example, we need to use a function to create each new <code>DefaultDict</code>. If we forget, we will end up using the same<code>DefaultDict</code> for all default values:</p><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd = DefaultDict{AbstractString, DefaultDict}(DefaultDict{AbstractString,Int}(0));</code><code class="nohighlight hljs ansi" style="display:block;"></code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;a&quot;]</code><code class="nohighlight hljs ansi" style="display:block;">DefaultDict{AbstractString, Int64, Int64}()</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;b&quot;][&quot;a&quot;] = 1</code><code class="nohighlight hljs ansi" style="display:block;">1</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;a&quot;]</code><code class="nohighlight hljs ansi" style="display:block;">DefaultDict{AbstractString, Int64, Int64} with 1 entry:
&quot;a&quot; =&gt; 1</code></pre><p>To create a <code>DefaultDict</code> which recursively calls itself you can write:</p><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; rdict(args...) = DefaultDict(rdict, Dict{Any,Any}(args...))</code><code class="nohighlight hljs ansi" style="display:block;">rdict (generic function with 1 method)</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd = rdict()</code><code class="nohighlight hljs ansi" style="display:block;">ERROR: UndefVarError: `DefaultDict` not defined</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;a&quot;][&quot;b&quot;][&quot;c&quot;]</code><code class="nohighlight hljs ansi" style="display:block;">ERROR: UndefVarError: `dd` not defined</code></pre><p>It&#39;s also possible to create a recursive <code>DefaultDict</code> where the key is restricted:</p><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; rdict(args...) = DefaultDict{String,Any,typeof(rdict)}(rdict, Dict{String,Any}(args...))</code><code class="nohighlight hljs ansi" style="display:block;">rdict (generic function with 1 method)</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd = rdict()</code><code class="nohighlight hljs ansi" style="display:block;">ERROR: UndefVarError: `DefaultDict` not defined</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;a&quot;][&quot;b&quot;][&quot;c&quot;]</code><code class="nohighlight hljs ansi" style="display:block;">ERROR: UndefVarError: `dd` not defined</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../ordered_containers/">« OrderedDicts and OrderedSets</a><a class="docs-footer-nextpage" href="../robin_dict/">RobinDict »</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 19 July 2023 15:57">Wednesday 19 July 2023</span>. Using Julia version 1.9.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
&quot;a&quot; =&gt; 1</code></pre><p>To create a <code>DefaultDict</code> which recursively calls itself you can write:</p><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; rdict(args...) = DefaultDict(rdict, Dict{Any,Any}(args...))</code><code class="nohighlight hljs ansi" style="display:block;">rdict (generic function with 1 method)</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd = rdict()</code><code class="nohighlight hljs ansi" style="display:block;">ERROR: UndefVarError: `DefaultDict` not defined</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;a&quot;][&quot;b&quot;][&quot;c&quot;]</code><code class="nohighlight hljs ansi" style="display:block;">ERROR: UndefVarError: `dd` not defined</code></pre><p>It&#39;s also possible to create a recursive <code>DefaultDict</code> where the key is restricted:</p><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; rdict(args...) = DefaultDict{String,Any,typeof(rdict)}(rdict, Dict{String,Any}(args...))</code><code class="nohighlight hljs ansi" style="display:block;">rdict (generic function with 1 method)</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd = rdict()</code><code class="nohighlight hljs ansi" style="display:block;">ERROR: UndefVarError: `DefaultDict` not defined</code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; dd[&quot;a&quot;][&quot;b&quot;][&quot;c&quot;]</code><code class="nohighlight hljs ansi" style="display:block;">ERROR: UndefVarError: `dd` not defined</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../ordered_containers/">« OrderedDicts and OrderedSets</a><a class="docs-footer-nextpage" href="../robin_dict/">RobinDict »</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="Thursday 3 August 2023 13:27">Thursday 3 August 2023</span>. Using Julia version 1.9.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit 65453ab

Please sign in to comment.