equal
deleted
inserted
replaced
100 \frametitle{Outline} |
100 \frametitle{Outline} |
101 \tableofcontents[currentsection,currentsubsection] |
101 \tableofcontents[currentsection,currentsubsection] |
102 \end{frame} |
102 \end{frame} |
103 } |
103 } |
104 |
104 |
|
105 \newcommand{\num}{\texttt{numpy}} |
|
106 |
|
107 |
105 % If you wish to uncover everything in a step-wise fashion, uncomment |
108 % If you wish to uncover everything in a step-wise fashion, uncomment |
106 % the following command: |
109 % the following command: |
107 %\beamerdefaultoverlayspecification{<+->} |
110 %\beamerdefaultoverlayspecification{<+->} |
108 |
111 |
109 %\includeonlyframes{current,current1,current2,current3,current4,current5,current6} |
112 %\includeonlyframes{current,current1,current2,current3,current4,current5,current6} |
122 % You might wish to add the option [pausesections] |
125 % You might wish to add the option [pausesections] |
123 \end{frame} |
126 \end{frame} |
124 |
127 |
125 \section{Matrices and Arrays} |
128 \section{Matrices and Arrays} |
126 |
129 |
127 \subsection{Basic \typ{numpy} } |
130 \subsection{Basic \typ{numpy}} |
128 |
|
129 \newcommand{\num}{\texttt{numpy}} |
|
130 |
131 |
131 \begin{frame} |
132 \begin{frame} |
132 \frametitle{The \num\ module} |
133 \frametitle{The \num module} |
133 \begin{itemize} |
134 \begin{itemize} |
134 \item Why? |
135 \item Why? |
135 \item What: |
136 \item What: |
136 \begin{itemize} |
137 \begin{itemize} |
137 \item An efficient and powerful array type for various common data types |
138 \item An efficient and powerful array type for various common data types |
248 \end{lstlisting} |
249 \end{lstlisting} |
249 \inctime{10} |
250 \inctime{10} |
250 \end{frame} |
251 \end{frame} |
251 |
252 |
252 \subsection{Array Creation \& Slicing, Striding Arrays} |
253 \subsection{Array Creation \& Slicing, Striding Arrays} |
|
254 |
253 \begin{frame}[fragile] |
255 \begin{frame}[fragile] |
254 \frametitle{Array creation functions} |
256 \frametitle{Array creation functions} |
255 \begin{itemize} |
257 \begin{itemize} |
256 \item {\typ{np.array(object,dtype=None,...)} |
258 \item \typ{np.array(object,dtype=None,...)} |
257 \begin{lstlisting} |
259 \begin{lstlisting} |
258 >>> np.array([2,3,4]) |
260 >>> np.array([2,3,4]) |
259 array([2, 3, 4]) |
261 array([2, 3, 4]) |
260 \end{lstlisting} |
262 \end{lstlisting} |
261 \item \typ{np.linspace(start,stop,...)} |
263 \item \typ{np.linspace(start,stop,...)} |