diff -r 88a01948450d -r d33698326409 accessing-pieces-arrays/quickref.tex --- a/accessing-pieces-arrays/quickref.tex Wed Nov 17 23:24:57 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -\textbf{Accessing parts of arrays} - -\lstinline|C[i-1, j-1]| to access element i, j in C (mxn). -\lstinline|C[i-1]| to access i^{th} row -\lstinline|C[:, j-1]| to access j^{th} column - -Assigning to accessed elements, changes them. - -\lstinline|A[m:n:o]| accesses the rows from \lstinline|m| -to \lstinline|n| (excluded) in steps of \lstinline|o| - -Similarly, \lstinline|C[m:n:o, p:q:r]|