diff options
Diffstat (limited to 'day2/session2.tex')
-rw-r--r-- | day2/session2.tex | 7 |
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! |