-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintro_gr.tex
47 lines (41 loc) · 1.4 KB
/
intro_gr.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
\graphicspath{{./figs/intro/}}
\chapter{Εισαγωγή}
\label{chap-intro}
Σύντομο εισαγωγικό σημείωμα.
\section{Ξεκινώντας}
Μπλα, μπλα, μπλα\dots
Ο Αλγόριθμος~\ref{alg-sample}, βασίζεται στο custom πακέτο
\IndexedSubtermEmph{bkkalgo}{custom \LaTeX packages}, στο
Σχήμα~\ref{fig-sample} και, φυσικά, στον Πίνακα~\ref{tab-sample}. Περισσότερα
στο~\cite{karakasis12cslab}.
\begin{algorithm}
\algtoprule
\begin{algorithmic}[1]
\Procedure{MatVecCsr}{$A$::in, $x$::in, $y$::out}
\Statex{$A$: matrix in CSR format}
\Statex{$x$: input vector}
\Statex{$y$: output vector}
\ForBounds{$i \gets 0$}{$\MathVar{N}$}
\ForBounds{$j \gets \MathVar{rowptr}[i]$}{$\MathVar{rowptr}[i+1]$}
\label{al-row-start}
\State{$y[i] \gets y[i] + \MathVar{values}[j]\cdot x[\MathVar{colind}[j]]$}
\EndFor\label{al-row-end}
\EndFor
\EndProcedure
\end{algorithmic}
\algbottomrule
\caption{Δείγμα αλγορίθμου.}
\label{alg-sample}
\end{algorithm}
\begin{figure}
\centering
\fbox{Put a graphic here.}
\caption{Δείγμα σχήματος.}
\label{fig-sample}
\end{figure}
\begin{table}
\centering
\fbox{Put some tabular data here.}
\caption{Δείγμα πίνακα.}
\label{tab-sample}
\end{table}