Changes to arrays presentation.
authorShantanu <shantanu@fossee.in>
Thu, 15 Apr 2010 15:30:59 +0530
changeset 68 fe5d3fb83597
parent 67 806cca3b7231
child 70 c172d36d9a76
child 71 bc3f351aeec9
Changes to arrays presentation.
arrays.txt
presentations/arrays.tex
--- a/arrays.txt	Thu Apr 15 12:48:04 2010 +0530
+++ b/arrays.txt	Thu Apr 15 15:30:59 2010 +0530
@@ -40,7 +40,7 @@
 to access the element 23 we type
 c[1][2]
 
-It is second row third column of c. Note that index values of arrays also start from 0.
+It is the second row, third column of c. Note that index values of arrays also start from 0.
 Alternative and popular way of doing this is
 c[1, 2]
 
@@ -62,14 +62,13 @@
 Accessing a row is straight forward we skip column part
 but to access whole column we have to use
 c[:,2]
-will return third column.
-here the ':' part mentioned for row value symbolises entire row.
+it returns third column.
+here the ':' part mentioned for row value means entire row.
 the c[1] we were using earlier can also be written as c[1,:]
 
-':' actually takes two value. for any row or column we can mention
-start:end values, and rows/columns starting for 'start' till 'end' will be returned. Lets try some examples for better understanding
+':' actually takes two value. for any row or column we can mention start:end values, and rows/columns starting for 'start' till 'end' will be returned. Lets try some examples for better understanding
 c[0:2,:]
-will result in rows starting from first(0) till second and all columns. Note here that 'end' in our case, '2' would not be included in resulting array.
+will result in 2x3 array with rows starting from first(0) till second and all columns. Note here that 'end', in our case, '2' would not be included in resulting array.
 
 c[1:3,:] 
 gives second and third row.
@@ -83,8 +82,8 @@
 
 so
 c[:, :2]
-will also give us first two columns
-and c[:, 1:] will return last columns.
+will also give us the first two columns
+and c[:, 1:] will return last columns of c
 
 c[1:, :2]
 returns first two columns of last two rows
--- a/presentations/arrays.tex	Thu Apr 15 12:48:04 2010 +0530
+++ b/presentations/arrays.tex	Thu Apr 15 15:30:59 2010 +0530
@@ -99,8 +99,8 @@
     \begin{itemize}
     \item Creating and initializing arrays
     \item Manipulating arrays
+    \item Basic Image processing using arrays
     \item Performing Matrix operations using arrays
-    \item Basic Image processing using arrays
     \end{itemize}  
   \end{block}
 \end{frame}