@@ -901,10 +901,10 @@ \subsection{4) Hands-on: numerical linear algebra (3.4)}
901901\end {frame }
902902
903903\begin {frame }[fragile]{Exercise 8: Starter code (C++)}
904- \framesubtitle {Hands-on: fill the TODOs to make it run}
905904
906905 \textbf {Your tasks on this slide }
907906\begin {itemize }
907+ \item Open code \texttt {alp\_ exercise8\_ starter.cpp } from the tutorial materials. And complete the following tasks:
908908 \item Build matrix $ A$ from (I,J,values): reserve capacity and call \texttt {buildMatrixUnique }.
909909 \item Initialize vector $ x = [1 ,2 ,3 ]^\top $ using \texttt {setElement } (clear first with \texttt {set }).
910910 \item Compute $ y = A\cdot x$ via \texttt {mxv } using the \texttt {plusTimes } semiring.
@@ -917,9 +917,10 @@ \subsection{4) Hands-on: numerical linear algebra (3.4)}
917917\end {frame }
918918
919919\begin {frame }[fragile]{Exercise 8: Starter code (C++) — continued}
920- \framesubtitle {Complete the TODOs}
921920
922- \ begin{lstlisting} [ language=C++, basicstyle=\ttfamily\scriptsize, caption={Exercise 8 starter: complete the TODOs}, label=lst:exercise8-starter, showstringspaces=false, aboveskip=2pt, belowskip=2pt]
921+ \ begin{lstlisting} [ language=C++, basicstyle=\ttfamily\scriptsize,
922+ caption={Exercise 8 starter: complete the TODOs},
923+ label=lst:exercise8-starter, showstringspaces=false, aboveskip=2pt, belowskip=2pt]
923924#include <cstdio>
924925#include <iostream>
925926#include <vector>
@@ -1021,6 +1022,7 @@ \subsection{5) Interoperability with existing code: Transition Paths \& Python}
10211022
10221023Install with:
10231024\ begin{lstlisting} [style=terminal,language=bash]
1025+ conda activate py311 # make sure to have > python3.11 version
10241026pip install "alp-graphblas"
10251027\end {lstlisting }
10261028
@@ -1431,7 +1433,11 @@ \subsection{11) Hands-on: Section 5; CG example; Python example; explicit SIMD}
14311433\end {frame }
14321434
14331435\begin {frame }[fragile]{Exercise 9: Starter code (Python)}
1434- \framesubtitle {Fill in TODOs (timing, SPD generation, loop)}
1436+ \begin {itemize }
1437+ \item {Fill in TODOs (timing, SPD generation, loop)}
1438+ \item {Test execution after each TODO to ensure correctness}
1439+ \item {Test execution time}
1440+ \end {itemize }
14351441\ begin{lstlisting} [language=Python, basicstyle=\ttfamily\scriptsize, frame=single, showstringspaces=false, caption={Exercise 9 starter}, label={lst:exercise9-starter}]
14361442import numpy as np, time
14371443import pyalp
0 commit comments