# HG changeset patch # User Puneeth Chaganti # Date 1255088640 -19800 # Node ID 691608044ae7d8b533ad057c0fd974f69490aecd # Parent 338b85a9c86488b4cad96ae100178fe59fa3d856 Minor edits to Session1 Day2. diff -r 338b85a9c864 -r 691608044ae7 day2/session1.tex --- a/day2/session1.tex Fri Oct 09 12:55:34 2009 +0530 +++ b/day2/session1.tex Fri Oct 09 17:14:00 2009 +0530 @@ -102,6 +102,9 @@ \end{frame} } +\newcommand{\num}{\texttt{numpy}} + + % If you wish to uncover everything in a step-wise fashion, uncomment % the following command: %\beamerdefaultoverlayspecification{<+->} @@ -124,12 +127,10 @@ \section{Matrices and Arrays} -\subsection{Basic \typ{numpy} } - -\newcommand{\num}{\texttt{numpy}} +\subsection{Basic \typ{numpy}} \begin{frame} - \frametitle{The \num\ module} + \frametitle{The \num module} \begin{itemize} \item Why? \item What: @@ -250,10 +251,11 @@ \end{frame} \subsection{Array Creation \& Slicing, Striding Arrays} + \begin{frame}[fragile] \frametitle{Array creation functions} \begin{itemize} - \item {\typ{np.array(object,dtype=None,...)} + \item \typ{np.array(object,dtype=None,...)} \begin{lstlisting} >>> np.array([2,3,4]) array([2, 3, 4])