From eeaeb0b0f0dbd5cd3bf3001cac87ba74eb7fb8b2 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(-) 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