# HG changeset patch # User Puneeth Chaganti # Date 1257413212 -19800 # Node ID e7ce6f9d7e1549774dbe569fb639e3197a680f15 # Parent 5d680ab63dde9ad02da076b33fb9c634872d0b7f Added Striding in session4. diff -r 5d680ab63dde -r e7ce6f9d7e15 day1/session1.tex --- a/day1/session1.tex Thu Nov 05 14:07:26 2009 +0530 +++ b/day1/session1.tex Thu Nov 05 14:56:52 2009 +0530 @@ -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 -r 5d680ab63dde -r e7ce6f9d7e15 day1/session4.tex --- 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]