diff options
author | Puneeth Chaganti | 2009-11-05 14:56:52 +0530 |
---|---|---|
committer | Puneeth Chaganti | 2009-11-05 14:56:52 +0530 |
commit | 6465ca5143b905f5ea348ea3afb4282980956985 (patch) | |
tree | 2a3b7238888bed77c1ae476367b95de6941b90af /day1 | |
parent | 85bfb31454254f92ef1014a7e6ed0419b0295a56 (diff) | |
download | workshops-6465ca5143b905f5ea348ea3afb4282980956985.tar.gz workshops-6465ca5143b905f5ea348ea3afb4282980956985.tar.bz2 workshops-6465ca5143b905f5ea348ea3afb4282980956985.zip |
Added Striding in session4.
Diffstat (limited to 'day1')
-rw-r--r-- | day1/session1.tex | 2 | ||||
-rw-r--r-- | day1/session4.tex | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/day1/session1.tex b/day1/session1.tex index fbaadc3..16b643d 100644 --- a/day1/session1.tex +++ b/day1/session1.tex @@ -49,7 +49,7 @@ } \newcounter{time} \setcounter{time}{0} -\newcommand{%\inctime}[1]{\addtocounter{time}{#1}{\tiny \thetime\ m}} +\newcommand{\inctime}[1]{\addtocounter{time}{#1}{\tiny \thetime\ m}} \newcommand{\typ}[1]{\lstinline{#1}} diff --git a/day1/session4.tex b/day1/session4.tex index cf41dee..00e4e47 100644 --- a/day1/session4.tex +++ b/day1/session4.tex @@ -235,8 +235,25 @@ array([[ 0, 0], \begin{frame}[fragile] \frametitle{Striding} + \begin{small} \begin{lstlisting} +In []: C[::2,:] +Out[]: +array([[ 1, 1, 2], + [-1, 3, 7]]) + +In []: C[:,::2] +Out[]: +array([[ 1, 2], + [ 0, 0], + [-1, 7]]) + +In []: C[::2,::2] +Out[]: +array([[ 1, 2], + [-1, 7]]) \end{lstlisting} + \end{small} \end{frame} \begin{frame}[fragile] |