Added Striding in session4.
--- 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]