--- a/day1/cheatsheet4.tex Tue Dec 08 13:06:14 2009 +0530
+++ b/day1/cheatsheet4.tex Tue Dec 22 14:10:37 2009 +0530
@@ -28,7 +28,7 @@
Matrix Creation\\
\typ{In []: C = array([[1,1,2], [2,4,1], [-1,3,7]])}\\
It creates C matrix of shape 3x3\\
-Shape is dimenions of given array.
+Shape is dimensions of given array.
\begin{lstlisting}
In []: C.shape
Out[]: (3, 3)
@@ -38,7 +38,7 @@
\typ{In []: B = ones_like(C)} \\
B would be array of ones with the same shape and type as C.\\
\typ{In []: A = ones((3,2))} \\
-A would be new array of given shape(arguments), filled with ones.\\
+A would be new matrix of given shape(arguments), filled with ones.\\
\typ{In []: I = identity(3)}\\
I would be identity matrix of shape 3x3
@@ -77,7 +77,7 @@
\end{lstlisting}
\subsection{Slicing}
-Accessing rows with Matricies is straightforward. But If one wants to access particular Column, or want a sub-matrix, Slicing is the way to go.
+Accessing rows with Matrices is straightforward. But If one wants to access particular Column, or want a sub-matrix, Slicing is the way to go.
\begin{lstlisting}
In []: C[:,1]
Out[]: array([1, 0, 3])