diff --git a/Content/Presentations/sections/Section_MemoryAccessPatterns.tex b/Content/Presentations/sections/Section_MemoryAccessPatterns.tex index 1792155c..539baf10 100644 --- a/Content/Presentations/sections/Section_MemoryAccessPatterns.tex +++ b/Content/Presentations/sections/Section_MemoryAccessPatterns.tex @@ -163,7 +163,7 @@ \begin{code}[keywords={}] operator()(int index, double & valueToUpdate) const { - const double d = _data(index); + const double d = data_(index); valueToUpdate += d; } \end{code} @@ -341,7 +341,7 @@ \begin{code}[keywords={}] operator()(int index, double & valueToUpdate) const { - const double d = _data(index); + const double d = data_(index); valueToUpdate += d; } \end{code} diff --git a/Content/Presentations/sections/Section_Spaces.tex b/Content/Presentations/sections/Section_Spaces.tex index 216a62b0..7de8d099 100644 --- a/Content/Presentations/sections/Section_Spaces.tex +++ b/Content/Presentations/sections/Section_Spaces.tex @@ -320,7 +320,7 @@ Every view stores its data in a \textbf{memory space} set at compile time. \end{block} - \vspace{10pt} + \vspace{5pt} \begin{itemize} \item<2->{\texttt{View data(...);}} diff --git a/Content/Presentations/sections/Section_Views.tex b/Content/Presentations/sections/Section_Views.tex index 2ac470d8..d431d10d 100644 --- a/Content/Presentations/sections/Section_Views.tex +++ b/Content/Presentations/sections/Section_Views.tex @@ -42,9 +42,9 @@ frame=single ] struct Functor { - double *_x, *_y, a; + double *x_, *y_, a; void operator()(const int64_t i) const { - _y[i] += _x[i]; + y_[i] += x_[i]; } }; \end{code}