@@ -495,40 +495,42 @@ \subsection{2) Hands-on: installation, containers, I/O, copying, masking, standa
495495\end {frame }
496496
497497\begin {frame }[fragile]{2.2. Hands-on: Basic Container I/O}
498- \framesubtitle {Container primitives and accessing elements}
499- ALP/GraphBLAS containers use iterators and custom primitives to manipulate data:
500- \\
501- \vspace {1em}
498+ \framesubtitle {Container primitives and Exercise 3}
499+ \begin {columns }[T]
500+ \begin {column }{0.45\textwidth }
502501\textbf {Basic container manipulation primitives: }
502+ \vspace {0.5em}
503503\begin {itemize }
504- \item \texttt {grb::clear(container) }: removes all elements
505- \item \texttt {grb::set(vector,scalar) }: sets all elements to \textit {scalar } (-> dense)
506- \item \texttt {grb::setElement(vector,scalar,index) }: sets element at \textit {index } to \textit {scalar }
504+ \item \texttt {grb::clear(container) }:\\ removes all elements
505+ \item \texttt {grb::set(vector,scalar) }:\\ sets all elements to \textit {scalar } (-> dense)
506+ \item \texttt {grb::setElement(vector,scalar
507+ \\ ,index) }: sets element at \textit {index } to \textit {scalar }
507508\end {itemize }
508- % Owner: PA
509- % Source (ALP_Tutorial.tex - Basic Container I/O)
510- \end {frame }
509+ \end {column }
511510
512- \begin {frame }[fragile]{2.2. Hands-on: Basic Container I/O}
513- \framesubtitle {Exercise 3: Container manipulation}
511+ \begin {column }{0.5\textwidth }
514512 \textbf {Exercise 3. } Allocate:
515513 \begin {itemize }
516- \item \texttt {grb::Vector<bool> } \texttt {x }, \texttt {y }: length 497, capacities 497 and 1
517- \item \texttt {grb::Matrix<void> } \texttt {A }: size $ 497 \times 497 $ , capacity 1727
514+ \item \texttt {grb::Vector<bool> } \texttt {x }, \texttt {y }:\\ length 497, capacities 497 and 1
515+ \item \texttt {grb::Matrix<void> } \texttt {A }:\\ size $ 497 \times 497 $ , capacity 1727
518516 \item Initialize \texttt {y } with \texttt {true } at index 200
519517 \item Initialize \texttt {x } with \texttt {false } everywhere
520518 \item Print nnz for \texttt {x } and \texttt {y }
521519 \end {itemize }
522- Start from \texttt {alp\_ containers\_ ex2.cpp }
520+ \end {column }
521+ \end {columns }
522+
523+ \vspace {1em}
524+ Start from \texttt {alp\_ containers\_ ex2.cpp }
523525\ begin{lstlisting} [style=terminal, language=bash, basicstyle=\ttfamily\scriptsize\color{terminaltext}]
524526cp alp_containers_ex2.cpp alp_containers_ex3.cpp
525527\end {lstlisting }
526- \textbf {Expected output: }
527- \ begin{lstlisting} [style=terminal, language=bash, basicstyle=\ttfamily\scriptsize\color{terminaltext}]
528- nonzeroes in x: 497
529- nonzeroes in y: 1
530- \end {lstlisting }
531- \textbf {Bonus question: } Print the capacity of \texttt {y }. Should the value returned be unexpected, considering the specification in the user documentation, is this a bug in ALP?
528+ % \textbf{Expected output:}
529+ % \begin{lstlisting}[style=terminal, language=bash, basicstyle=\ttfamily\scriptsize\color{terminaltext}]
530+ % nonzeroes in x: 497
531+ % nonzeroes in y: 1
532+ % \end{lstlisting}
533+ \textbf {Bonus question: } Print the capacity of \texttt {y }. Should the value returned be unexpected, considering the specification in the user documentation, is this a bug in ALP?
532534% Owner: PA
533535% Source (ALP_Tutorial.tex - Basic Container I/O, Exercise 3)
534536\end {frame }
0 commit comments