changeset 279 | e7ce6f9d7e15 |
parent 278 | 5d680ab63dde |
child 281 | ce818f645f6b |
--- a/day1/session4.tex Thu Nov 05 14:07:26 2009 +0530 +++ b/day1/session4.tex Thu Nov 05 14:56:52 2009 +0530 @@ -235,8 +235,25 @@ \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]