summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuneeth Chaganti2009-10-09 11:13:37 +0530
committerPuneeth Chaganti2009-10-09 11:13:37 +0530
commitd22feb6a89c900538d2a33ae9040b46057caa78a (patch)
tree3187a4da80ced0b84eb2d662690cfe111a8908cd
parent980fb3edefe65b96916559b7862ac08aa85b022f (diff)
downloadworkshops-more-scipy-d22feb6a89c900538d2a33ae9040b46057caa78a.tar.gz
workshops-more-scipy-d22feb6a89c900538d2a33ae9040b46057caa78a.tar.bz2
workshops-more-scipy-d22feb6a89c900538d2a33ae9040b46057caa78a.zip
Edited Broadcasting slides.
-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!