mirror of
https://github.com/fverdugo/XM_40017.git
synced 2025-12-29 10:18:31 +01:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b9029c93f | ||
|
|
eb8cd31240 | ||
|
|
62fcf5ae2e | ||
|
|
788d7f39d0 | ||
|
|
42a485560e | ||
|
|
e7b6ba8407 | ||
|
|
ac8a44f6ab | ||
|
|
57c8db52eb |
@@ -874,7 +874,7 @@
|
||||
"source": [
|
||||
"### Higher-order functions\n",
|
||||
"\n",
|
||||
"Higher order functions are functions that take and/or return other functions. And example is the `count` function in Julia.\n",
|
||||
"Higher order functions are functions that take and/or return other functions. An example is the `count` function in Julia.\n",
|
||||
"\n",
|
||||
"For instance, we can pass a user-defined function to count the number of even elements in an array."
|
||||
]
|
||||
|
||||
@@ -771,9 +771,11 @@
|
||||
" rank = MPI.Comm_rank(comm)\n",
|
||||
" if rank == 2\n",
|
||||
" sndbuf = [2]\n",
|
||||
" MPI.Send(sndbuf, comm2; dest=3, tag=0)\n",
|
||||
" req1 = MPI.Isend(sndbuf, comm2; dest=3, tag=0)\n",
|
||||
" sndbuf = [1]\n",
|
||||
" MPI.Send(sndbuf, comm; dest=3, tag=0)\n",
|
||||
" req2 = MPI.Isend(sndbuf, comm; dest=3, tag=0)\n",
|
||||
" MPI.Wait(req2)\n",
|
||||
" MPI.Wait(req1)\n",
|
||||
" end\n",
|
||||
" if rank == 3\n",
|
||||
" rcvbuf = zeros(Int,1)\n",
|
||||
|
||||
Reference in New Issue
Block a user