Added Striding in session4.
authorPuneeth Chaganti <punchagan@fossee.in>
Thu, 05 Nov 2009 14:56:52 +0530
changeset 279 e7ce6f9d7e15
parent 278 5d680ab63dde
child 280 9bed85f05eb8
Added Striding in session4.
day1/session1.tex
day1/session4.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}}
 
--- 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]