Skip to content

Commit 99d1339

Browse files
committed
stdpar/C++/DAXPY: Remove solution from first exercise.
1 parent bbb00ae commit 99d1339

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

tutorials/stdpar/notebooks/cpp/lab1_daxpy/daxpy.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@
184184
" // Using: \n",
185185
" // - std::views::iota(0).begin() iterator\n",
186186
" // - std::for_each_n algorithm\n",
187-
" // std::for_each_n(std::views::iota(0).begin(), x.size(), [&](int i) {\n",
188-
" // y[i] += a * x[i];\n",
189-
" // });\n",
190187
"}\n",
191188
"```\n",
192189
"\n",

tutorials/stdpar/notebooks/cpp/lab1_daxpy/exercise1.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ void daxpy(double a, std::vector<double> const &x, std::vector<double> &y) {
5050
// Using:
5151
// - std::views::iota(0).begin() iterator
5252
// - std::for_each_n algorithm
53-
// std::for_each_n(std::views::iota(0).begin(), x.size(), [&](int i) {
54-
// y[i] += a * x[i];
55-
// });
5653
}
5754

5855
// Check solution

0 commit comments

Comments
 (0)