summaryrefslogtreecommitdiff
path: root/day1/cheatsheet4.tex
diff options
context:
space:
mode:
authorSantosh G. Vattam2009-12-08 16:37:18 +0530
committerSantosh G. Vattam2009-12-08 16:37:18 +0530
commite60b5c2290e99fb20d141be90ed5655335a1e8e9 (patch)
tree36a2f9d2552a022991c7aad4b592ad122ee57d21 /day1/cheatsheet4.tex
parentb902fbdf147a74f1c38b6f00208d753e7021e4ae (diff)
downloadworkshops-e60b5c2290e99fb20d141be90ed5655335a1e8e9.tar.gz
workshops-e60b5c2290e99fb20d141be90ed5655335a1e8e9.tar.bz2
workshops-e60b5c2290e99fb20d141be90ed5655335a1e8e9.zip
Minor edits to correct spellings.
Diffstat (limited to 'day1/cheatsheet4.tex')
-rwxr-xr-xday1/cheatsheet4.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/day1/cheatsheet4.tex b/day1/cheatsheet4.tex
index d04609a..68257a8 100755
--- a/day1/cheatsheet4.tex
+++ b/day1/cheatsheet4.tex
@@ -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 @@ array([[ 1, 1, 2],
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 @@ array([[ 1, 1, 2],
\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 @@ array([[ 0, 0],
\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,:]