From d22feb6a89c900538d2a33ae9040b46057caa78a Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Fri, 9 Oct 2009 11:13:37 +0530 Subject: Edited Broadcasting slides. --- day2/session2.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'day2/session2.tex') 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! -- cgit