mirror of
https://github.com/fverdugo/XM_40017.git
synced 2025-11-09 02:54:23 +01:00
Publish 3 first notebooks
This commit is contained in:
parent
2b8b471cb4
commit
421ad3ad68
11
docs/make.jl
11
docs/make.jl
@ -119,15 +119,16 @@ makedocs(;
|
|||||||
canonical="https://fverdugo.github.io/XM_40017",
|
canonical="https://fverdugo.github.io/XM_40017",
|
||||||
edit_link="main",),
|
edit_link="main",),
|
||||||
pages=["Home" => "index.md","Getting started"=>"getting_started_with_julia.md",
|
pages=["Home" => "index.md","Getting started"=>"getting_started_with_julia.md",
|
||||||
#"Notebooks"=>[
|
"Notebooks"=>[
|
||||||
# "Julia Basics" => "notebooks/julia_basics.md",
|
"Julia Basics" => "notebooks/julia_basics.md",
|
||||||
# "Tasks and channels" => "notebooks/julia_async.md",
|
"Tasks and channels" => "notebooks/julia_async.md",
|
||||||
# "Remote calls and remote channels" => "notebooks/julia_distributed.md",
|
"Remote calls and remote channels" => "notebooks/julia_distributed.md",
|
||||||
# "MPI" => "notebooks/mpi_tutorial.md",
|
# "MPI" => "notebooks/mpi_tutorial.md",
|
||||||
# "Matrix Multiplication"=>"notebooks/matrix_matrix.md",
|
# "Matrix Multiplication"=>"notebooks/matrix_matrix.md",
|
||||||
# "Jacobi" => "notebooks/jacobi_method.md",
|
# "Jacobi" => "notebooks/jacobi_method.md",
|
||||||
# "ASP" => "notebooks/asp.md",
|
# "ASP" => "notebooks/asp.md",
|
||||||
# "Solutions" => "notebooks/solutions.md" ],
|
# "Solutions" => "notebooks/solutions.md",
|
||||||
|
],
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -581,7 +581,9 @@
|
|||||||
"id": "9ddd66ca",
|
"id": "9ddd66ca",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"## Questions"
|
"## Questions\n",
|
||||||
|
"\n",
|
||||||
|
"In the next questions, `t` is the value of the variable `t` defined in the next cell."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -762,23 +764,13 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# License\n",
|
"# License\n",
|
||||||
"\n",
|
"\n",
|
||||||
"TODO: replace link to website\n",
|
"This notebook is part of the course [Programming Large Scale Parallel Systems](https://www.francescverdugo.com/XM_40017/) at Vrije Universiteit Amsterdam and may be used under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license."
|
||||||
"\n",
|
|
||||||
"This notebook is part of the course [Programming Large Scale Parallel Systems](http://localhost:8000/) at Vrije Universiteit Amsterdam and may be used under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license."
|
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "f9863011",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Julia 1.9.1",
|
"display_name": "Julia 1.9.0",
|
||||||
"language": "julia",
|
"language": "julia",
|
||||||
"name": "julia-1.9"
|
"name": "julia-1.9"
|
||||||
},
|
},
|
||||||
@ -786,7 +778,7 @@
|
|||||||
"file_extension": ".jl",
|
"file_extension": ".jl",
|
||||||
"mimetype": "application/julia",
|
"mimetype": "application/julia",
|
||||||
"name": "julia",
|
"name": "julia",
|
||||||
"version": "1.9.1"
|
"version": "1.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|||||||
@ -586,6 +586,41 @@
|
|||||||
"x"
|
"x"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"id": "4fc5eb9b",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"### References\n",
|
||||||
|
"\n",
|
||||||
|
"As you can see variables are passed \"by value\". Passing variables \"by reference\" is done using a reference.\n"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "6ef5fe2c",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"function q!(x)\n",
|
||||||
|
" x[] = 2\n",
|
||||||
|
" x\n",
|
||||||
|
"end"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "ba245808",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"x = Ref(1)\n",
|
||||||
|
"q!(x)\n",
|
||||||
|
"x[]"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"id": "d20bc3a4",
|
"id": "d20bc3a4",
|
||||||
@ -1608,9 +1643,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# License\n",
|
"# License\n",
|
||||||
"\n",
|
"\n",
|
||||||
"TODO: replace link to website\n",
|
"This notebook is part of the course [Programming Large Scale Parallel Systems](https://www.francescverdugo.com/XM_40017/) at Vrije Universiteit Amsterdam and may be used under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license."
|
||||||
"\n",
|
|
||||||
"This notebook is part of the course [Programming Large Scale Parallel Systems](http://localhost:8000/) at Vrije Universiteit Amsterdam and may be used under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license."
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -780,7 +780,7 @@
|
|||||||
"@fetchfrom proc sum(a^2)\n",
|
"@fetchfrom proc sum(a^2)\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"\n",
|
"\n",
|
||||||
" a) 17\n",
|
" a) 16\n",
|
||||||
" b) 32\n",
|
" b) 32\n",
|
||||||
" c) 16^2\n",
|
" c) 16^2\n",
|
||||||
" d) 65"
|
" d) 65"
|
||||||
@ -815,7 +815,7 @@
|
|||||||
"```\n",
|
"```\n",
|
||||||
"\n",
|
"\n",
|
||||||
" a) 2\n",
|
" a) 2\n",
|
||||||
" b) 17\n",
|
" b) 16\n",
|
||||||
" c) 5\n",
|
" c) 5\n",
|
||||||
" d) 32"
|
" d) 32"
|
||||||
]
|
]
|
||||||
@ -1303,18 +1303,8 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# License\n",
|
"# License\n",
|
||||||
"\n",
|
"\n",
|
||||||
"TODO: replace link to website\n",
|
"This notebook is part of the course [Programming Large Scale Parallel Systems](https://www.francescverdugo.com/XM_40017) at Vrije Universiteit Amsterdam and may be used under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license."
|
||||||
"\n",
|
|
||||||
"This notebook is part of the course [Programming Large Scale Parallel Systems](http://localhost:8000/) at Vrije Universiteit Amsterdam and may be used under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license."
|
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "8e36ae43",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user