Skip to content
Snippets Groups Projects
Commit 705ac531 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Minor doc change

parent 3010daed
No related branches found
No related tags found
1 merge request!438Reduction Support
...@@ -105,8 +105,9 @@ To execute the kernel on CPUs, not only a {any}`numpy.ndarray` has to be passed ...@@ -105,8 +105,9 @@ To execute the kernel on CPUs, not only a {any}`numpy.ndarray` has to be passed
but also one for exporting reduction results. but also one for exporting reduction results.
The export mechanism can be seen in the previously generated code snippet. The export mechanism can be seen in the previously generated code snippet.
Here, the kernel obtains a pointer with the name of the reduction symbol (here: `r`). Here, the kernel obtains a pointer with the name of the reduction symbol (here: `r`).
This pointer not only allows providing initial values for the reduction but is also used for writing back the This pointer is used for exporting the reduction result back from the kernel.
reduction result. Please note that the **values passed via pointer will not be overwritten**
but will be incorporated in the reduction computation.
Since our reduction result is a single scalar value, it is sufficient to set up an array comprising a singular value. Since our reduction result is a single scalar value, it is sufficient to set up an array comprising a singular value.
```{code-cell} ipython3 ```{code-cell} ipython3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment