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/session4.tex | |
parent | 85bfb31454254f92ef1014a7e6ed0419b0295a56 (diff) | |
download | workshops-6465ca5143b905f5ea348ea3afb4282980956985.tar.gz workshops-6465ca5143b905f5ea348ea3afb4282980956985.tar.bz2 workshops-6465ca5143b905f5ea348ea3afb4282980956985.zip |
Added Striding in session4.
Diffstat (limited to 'day1/session4.tex')
-rw-r--r-- | day1/session4.tex | 17 |
1 files changed, 17 insertions, 0 deletions
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] |