Skip to content

Commit

Permalink
build based on c3819b2
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Nov 30, 2023
1 parent ad6577c commit 5037b9c
Show file tree
Hide file tree
Showing 43 changed files with 394 additions and 394 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.4","generation_timestamp":"2023-11-23T19:10:04","documenter_version":"1.1.2"}}
{"documenter":{"julia_version":"1.9.4","generation_timestamp":"2023-11-30T17:34:39","documenter_version":"1.1.2"}}
2 changes: 1 addition & 1 deletion dev/how_to_submit_hw/index.html

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/installation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia&gt;</code></pre><h2 id="Julia-IDE"><a class="docs-heading-anchor" href="#Julia-IDE">Julia IDE</a><a id="Julia-IDE-1"></a><a class="docs-heading-anchor-permalink" href="#Julia-IDE" title="Permalink"></a></h2><p>There is no one way to install/develop and run Julia, which may be strange users coming from MATLAB, but for users of general purpose languages such as Python, C++ this is quite common. Most of the Julia programmers to date are using</p><ul><li><a href="https://code.visualstudio.com/">Visual Studio Code</a>,</li><li>and the corresponding <a href="https://www.julia-vscode.org/">Julia extension</a>.</li></ul><p>This setup is described in a comprehensive <a href="https://juliateachingctu.github.io/Julia-for-Optimization-and-Learning/stable/installation/vscode/">step-by-step guide</a> in our bachelor course <a href="https://juliateachingctu.github.io/Julia-for-Optimization-and-Learning/stable/"><em>Julia for Optimization &amp; Learning</em></a>.</p><p>Note that this setup is not a strict requirement for the lectures/labs and any other text editor with the option to send code to the terminal such as Vim (+Tmux), Emacs, or Sublime Text will suffice.</p><h2 id="GitHub-registration-and-Git-setup"><a class="docs-heading-anchor" href="#GitHub-registration-and-Git-setup">GitHub registration &amp; Git setup</a><a id="GitHub-registration-and-Git-setup-1"></a><a class="docs-heading-anchor-permalink" href="#GitHub-registration-and-Git-setup" title="Permalink"></a></h2><p>As one of the goals of the course is writing code that can be distributed to others, we recommend a GitHub account, which you can create <a href="https://github.com/">here</a> (unless you already have one). In order to interact with GitHub repositories, we will be using <code>git</code>. For installation instruction (Windows only) see the section in the bachelor <a href="https://juliateachingctu.github.io/Julia-for-Optimization-and-Learning/dev/installation/git/">course</a>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><a class="docs-footer-nextpage" href="../projects/">Projects »</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.2 on <span class="colophon-date" title="Thursday 23 November 2023 19:10">Thursday 23 November 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
julia&gt;</code></pre><h2 id="Julia-IDE"><a class="docs-heading-anchor" href="#Julia-IDE">Julia IDE</a><a id="Julia-IDE-1"></a><a class="docs-heading-anchor-permalink" href="#Julia-IDE" title="Permalink"></a></h2><p>There is no one way to install/develop and run Julia, which may be strange users coming from MATLAB, but for users of general purpose languages such as Python, C++ this is quite common. Most of the Julia programmers to date are using</p><ul><li><a href="https://code.visualstudio.com/">Visual Studio Code</a>,</li><li>and the corresponding <a href="https://www.julia-vscode.org/">Julia extension</a>.</li></ul><p>This setup is described in a comprehensive <a href="https://juliateachingctu.github.io/Julia-for-Optimization-and-Learning/stable/installation/vscode/">step-by-step guide</a> in our bachelor course <a href="https://juliateachingctu.github.io/Julia-for-Optimization-and-Learning/stable/"><em>Julia for Optimization &amp; Learning</em></a>.</p><p>Note that this setup is not a strict requirement for the lectures/labs and any other text editor with the option to send code to the terminal such as Vim (+Tmux), Emacs, or Sublime Text will suffice.</p><h2 id="GitHub-registration-and-Git-setup"><a class="docs-heading-anchor" href="#GitHub-registration-and-Git-setup">GitHub registration &amp; Git setup</a><a id="GitHub-registration-and-Git-setup-1"></a><a class="docs-heading-anchor-permalink" href="#GitHub-registration-and-Git-setup" title="Permalink"></a></h2><p>As one of the goals of the course is writing code that can be distributed to others, we recommend a GitHub account, which you can create <a href="https://github.com/">here</a> (unless you already have one). In order to interact with GitHub repositories, we will be using <code>git</code>. For installation instruction (Windows only) see the section in the bachelor <a href="https://juliateachingctu.github.io/Julia-for-Optimization-and-Learning/dev/installation/git/">course</a>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><a class="docs-footer-nextpage" href="../projects/">Projects »</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.2 on <span class="colophon-date" title="Thursday 30 November 2023 17:34">Thursday 30 November 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/lecture_01/basics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
out = fsum(varargin{1},varargin{2:end})
end</code></pre><p>The need to build intuition for function composition.</p><p>Dispatch is easier to optimize by the compiler.</p><h2 id="Operators-are-functions"><a class="docs-heading-anchor" href="#Operators-are-functions">Operators are functions</a><a id="Operators-are-functions-1"></a><a class="docs-heading-anchor-permalink" href="#Operators-are-functions" title="Permalink"></a></h2><table><tr><th style="text-align: right">operator</th><th style="text-align: right">function name</th></tr><tr><td style="text-align: right">[A B C ...]</td><td style="text-align: right">hcat</td></tr><tr><td style="text-align: right">[A; B; C; ...]</td><td style="text-align: right">vcat</td></tr><tr><td style="text-align: right">[A B; C D; ...]</td><td style="text-align: right">hvcat</td></tr><tr><td style="text-align: right">A&#39;</td><td style="text-align: right">adjoint</td></tr><tr><td style="text-align: right">A[i]</td><td style="text-align: right">getindex</td></tr><tr><td style="text-align: right">A[i] = x</td><td style="text-align: right">setindex!</td></tr><tr><td style="text-align: right">A.n</td><td style="text-align: right">getproperty</td></tr><tr><td style="text-align: right">A.n = x</td><td style="text-align: right">setproperty!</td></tr></table><pre><code class="language-julia hljs">struct Foo end

Base.getproperty(a::Foo, x::Symbol) = x == :a ? 5 : error(&quot;does not have property $(x)&quot;)</code></pre><p>Can be redefined and overloaded for different input types. The <code>getproperty</code> method can define access to the memory structure.</p><h2 id="Broadcasting-revisited"><a class="docs-heading-anchor" href="#Broadcasting-revisited">Broadcasting revisited</a><a id="Broadcasting-revisited-1"></a><a class="docs-heading-anchor-permalink" href="#Broadcasting-revisited" title="Permalink"></a></h2><p>The <code>a.+b</code> syntax is a syntactic sugar for <code>broadcast(+,a,b)</code>.</p><p>The special meaning of the dot is that they will be fused into a single call:</p><ul><li><code>f.(g.(x .+ 1))</code> is treated by Julia as <code>broadcast(x -&gt; f(g(x + 1)), x)</code>. </li><li>An assignment <code>y .= f.(g.(x .+ 1))</code> is treated as in-place operation <code>broadcast!(x -&gt; f(g(x + 1)), y, x)</code>.</li></ul><p>The same logic works for lists, tuples, etc.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../motivation/">« Motivation</a><a class="docs-footer-nextpage" href="../demo/">Examples »</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.2 on <span class="colophon-date" title="Thursday 23 November 2023 19:10">Thursday 23 November 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Base.getproperty(a::Foo, x::Symbol) = x == :a ? 5 : error(&quot;does not have property $(x)&quot;)</code></pre><p>Can be redefined and overloaded for different input types. The <code>getproperty</code> method can define access to the memory structure.</p><h2 id="Broadcasting-revisited"><a class="docs-heading-anchor" href="#Broadcasting-revisited">Broadcasting revisited</a><a id="Broadcasting-revisited-1"></a><a class="docs-heading-anchor-permalink" href="#Broadcasting-revisited" title="Permalink"></a></h2><p>The <code>a.+b</code> syntax is a syntactic sugar for <code>broadcast(+,a,b)</code>.</p><p>The special meaning of the dot is that they will be fused into a single call:</p><ul><li><code>f.(g.(x .+ 1))</code> is treated by Julia as <code>broadcast(x -&gt; f(g(x + 1)), x)</code>. </li><li>An assignment <code>y .= f.(g.(x .+ 1))</code> is treated as in-place operation <code>broadcast!(x -&gt; f(g(x + 1)), y, x)</code>.</li></ul><p>The same logic works for lists, tuples, etc.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../motivation/">« Motivation</a><a class="docs-footer-nextpage" href="../demo/">Examples »</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.2 on <span class="colophon-date" title="Thursday 30 November 2023 17:34">Thursday 30 November 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/lecture_01/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@

prob = ODEProblem(lotka_volterra,u0,tspan,p)
sol = solve(prob)
plot(sol,denseplot=false)</code></pre><p><img src="../10_ode_m.svg" alt/></p><ul><li>all algebraic operations are defined, </li><li>passes all grid refinement techniques</li><li>plot uses the correct plotting for intervals</li></ul><h2 id="Integration-with-other-toolkits"><a class="docs-heading-anchor" href="#Integration-with-other-toolkits">Integration with other toolkits</a><a id="Integration-with-other-toolkits-1"></a><a class="docs-heading-anchor-permalink" href="#Integration-with-other-toolkits" title="Permalink"></a></h2><p>Flux: toolkit for modelling Neural Networks. Neural network is a function.</p><ul><li>integration with Measurements,</li><li>Integration with ODE (think of NN as part of the ODE)</li></ul><p>Turing: Probabilistic modelling toolkit</p><ul><li>integration with FLux (NN)</li><li>interation with ODE</li><li>using arbitrary bijective transformations, Bijectors.jl</li></ul></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../basics/">« Basics</a><a class="docs-footer-nextpage" href="../outline/">Outline »</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.2 on <span class="colophon-date" title="Thursday 23 November 2023 19:10">Thursday 23 November 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
plot(sol,denseplot=false)</code></pre><p><img src="../10_ode_m.svg" alt/></p><ul><li>all algebraic operations are defined, </li><li>passes all grid refinement techniques</li><li>plot uses the correct plotting for intervals</li></ul><h2 id="Integration-with-other-toolkits"><a class="docs-heading-anchor" href="#Integration-with-other-toolkits">Integration with other toolkits</a><a id="Integration-with-other-toolkits-1"></a><a class="docs-heading-anchor-permalink" href="#Integration-with-other-toolkits" title="Permalink"></a></h2><p>Flux: toolkit for modelling Neural Networks. Neural network is a function.</p><ul><li>integration with Measurements,</li><li>Integration with ODE (think of NN as part of the ODE)</li></ul><p>Turing: Probabilistic modelling toolkit</p><ul><li>integration with FLux (NN)</li><li>interation with ODE</li><li>using arbitrary bijective transformations, Bijectors.jl</li></ul></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../basics/">« Basics</a><a class="docs-footer-nextpage" href="../outline/">Outline »</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.2 on <span class="colophon-date" title="Thursday 30 November 2023 17:34">Thursday 30 November 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit 5037b9c

Please sign in to comment.