diff options
Diffstat (limited to 'day1/cheatsheet4.tex')
-rwxr-xr-x | day1/cheatsheet4.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/day1/cheatsheet4.tex b/day1/cheatsheet4.tex index d89e8a2..7410368 100755 --- a/day1/cheatsheet4.tex +++ b/day1/cheatsheet4.tex @@ -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] @@ -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,:] |