summaryrefslogtreecommitdiff
path: root/day2
diff options
context:
space:
mode:
authorPuneeth Chaganti2009-10-09 11:13:37 +0530
committerPuneeth Chaganti2009-10-09 11:13:37 +0530
commiteeaeb0b0f0dbd5cd3bf3001cac87ba74eb7fb8b2 (patch)
tree3187a4da80ced0b84eb2d662690cfe111a8908cd /day2
parent0b89a9ad757262323b9bcb1e1c303de4447305a5 (diff)
downloadworkshops-eeaeb0b0f0dbd5cd3bf3001cac87ba74eb7fb8b2.tar.gz
workshops-eeaeb0b0f0dbd5cd3bf3001cac87ba74eb7fb8b2.tar.bz2
workshops-eeaeb0b0f0dbd5cd3bf3001cac87ba74eb7fb8b2.zip
Edited Broadcasting slides.
Diffstat (limited to 'day2')
-rw-r--r--day2/session2.tex7
1 files changed, 4 insertions, 3 deletions
diff --git a/day2/session2.tex b/day2/session2.tex
index 5af1818..3f0184d 100644
--- a/day2/session2.tex
+++ b/day2/session2.tex
@@ -124,11 +124,12 @@
\begin{lstlisting}
>>> a = np.arange(4)
>>> b = np.arange(5)
- >>> a+b
+ >>> a+b #Does this work?
>>> a+3
>>> c=np.array([3])
- >>> a+c
- >>> b+c
+ >>> a+c #Works!
+ >>> b+c #But how?
+ >>> a.shape, b.shape, c.shape
\end{lstlisting}
\begin{itemize}
\item Enter Broadcasting!