day1/cheatsheet4.tex
changeset 340 347ff2714deb
parent 328 4075482a9770
child 341 7ae88b9da553
--- a/day1/cheatsheet4.tex	Tue Dec 08 13:06:14 2009 +0530
+++ b/day1/cheatsheet4.tex	Tue Dec 08 16:37:18 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)
@@ -52,7 +52,7 @@
 In []: C[1,2]
 Out[]: 1
 \end{lstlisting}
-Two indexes seperated by \typ{','} specifies [row, column]. So \typ{C[1,2]} gets third element of second row(indices starts from 0).
+Two indexes separated by \typ{','} specifies [row, column]. So \typ{C[1,2]} gets third element of second row(indices starts from 0).
 \newpage
 \begin{lstlisting}
 In []: C[1]
@@ -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])
@@ -123,7 +123,7 @@
 \typ{':2'} => Start from first column, till and excluding third column.
 \newpage
 \subsection{Striding}
-Often apart from submatrix, one needs to get some mechanism to jump a step. For example, how can we have all alternate rows of a Matrix. \\
+Often apart from sub-matrix, one needs to get some mechanism to jump a step. For example, how can we have all alternate rows of a Matrix. \\
 Following method will return Matrix with alternate rows.
 \begin{lstlisting}
 In []: C[::2,:]