summaryrefslogtreecommitdiff
path: root/day1
diff options
context:
space:
mode:
authorPuneeth Chaganti2009-11-05 14:56:52 +0530
committerPuneeth Chaganti2009-11-05 14:56:52 +0530
commit1d1fa64ae6fd6358aad5e362c265e4791ff0180b (patch)
tree2a3b7238888bed77c1ae476367b95de6941b90af /day1
parent6a5e3b0a2d005349d3f221c90cdbf1c58312f33b (diff)
downloadworkshops-more-scipy-1d1fa64ae6fd6358aad5e362c265e4791ff0180b.tar.gz
workshops-more-scipy-1d1fa64ae6fd6358aad5e362c265e4791ff0180b.tar.bz2
workshops-more-scipy-1d1fa64ae6fd6358aad5e362c265e4791ff0180b.zip
Added Striding in session4.
Diffstat (limited to 'day1')
-rw-r--r--day1/session1.tex2
-rw-r--r--day1/session4.tex17
2 files changed, 18 insertions, 1 deletions
diff --git a/day1/session1.tex b/day1/session1.tex
index fbaadc3..16b643d 100644
--- a/day1/session1.tex
+++ b/day1/session1.tex
@@ -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 --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]