equal
deleted
inserted
replaced
36 Out[]: (3, 2) |
36 Out[]: (3, 2) |
37 \end{lstlisting} |
37 \end{lstlisting} |
38 \typ{In []: B = ones_like(C)} \\ |
38 \typ{In []: B = ones_like(C)} \\ |
39 B would be array of ones with the same shape and type as C.\\ |
39 B would be array of ones with the same shape and type as C.\\ |
40 \typ{In []: A = ones((3,2))} \\ |
40 \typ{In []: A = ones((3,2))} \\ |
41 A would be new array of given shape(arguments), filled with ones.\\ |
41 A would be new matrix of given shape(arguments), filled with ones.\\ |
42 \typ{In []: I = identity(3)}\\ |
42 \typ{In []: I = identity(3)}\\ |
43 I would be identity matrix of shape 3x3 |
43 I would be identity matrix of shape 3x3 |
44 |
44 |
45 \subsection{Accessing Elements} |
45 \subsection{Accessing Elements} |
46 \begin{lstlisting} |
46 \begin{lstlisting} |