From 136fffb18cd9799519b096778d7249c1ed2359fa Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Fri, 5 Nov 2010 21:19:11 +0530 Subject: Changes to accessing parts of arrays during recording. --- accessing-pieces-arrays/script.rst | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'accessing-pieces-arrays/script.rst') diff --git a/accessing-pieces-arrays/script.rst b/accessing-pieces-arrays/script.rst index a1d30f6..d99d3f8 100644 --- a/accessing-pieces-arrays/script.rst +++ b/accessing-pieces-arrays/script.rst @@ -120,12 +120,11 @@ or C[-1] = 0 -Now, how do we access one column of C? As with accessing -individual elements, the column is the second parameter to be -specified (after the comma). The first parameter, is now replaced -with a ``:`` to say, that we want all the elements of that -dimension, instead of one particular element. We access the third -column by +Now, how do we access one column of C? As with accessing individual +elements, the column is the second parameter to be specified (after +the comma). The first parameter, is replaced with a ``:``. This +specifies that we want all the elements of that dimension, instead of +just one particular element. We access the third column by :: @@ -263,11 +262,10 @@ gives the elements [11, 21, 31, 41] gives the elements [21, 31, 41, 0] -Note that when specifying ranges, if you are starting from or -going up-to the end, the corresponding element may be dropped. So, -in the previous example to obtain [11, 21, 31, 41], we could have -simply said, -:: +Note that when specifying ranges, if you are starting from the +beginning or going up-to the end, the corresponding element may be +dropped. So, in the previous example to obtain [11, 21, 31, 41], we +could have simply said, :: C[:4, 0] @@ -317,7 +315,7 @@ Following is an exercise that you must do. %%5%% Obtain the square in the center of the image. -Following is an exercise that you must do. +Please, pause the video here. Do the exercises and then continue. {{ show slide containing Solution 5 }} @@ -377,7 +375,7 @@ gives the elements [[12, 0], [42, 0]] gives the elements [[12, 13, 14], [0, 0, 0]] -Now, that we know how to stride over an image, we can drop +Now, that we know how to stride over an array, we can drop alternate rows and columns out of the image in I. :: @@ -417,5 +415,5 @@ Thank you! mode: rst indent-tabs-mode: nil sentence-end-double-space: nil - fill-column: 75 + fill-column: 70 End: -- cgit From fb5e3fc998afbd9fd3c17da123cc61c541987118 Mon Sep 17 00:00:00 2001 From: Bhanukiran Date: Sun, 7 Nov 2010 01:17:25 +0530 Subject: language checked for `accessing pieces arrays` --- accessing-pieces-arrays/script.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'accessing-pieces-arrays/script.rst') diff --git a/accessing-pieces-arrays/script.rst b/accessing-pieces-arrays/script.rst index d99d3f8..10d3e3e 100644 --- a/accessing-pieces-arrays/script.rst +++ b/accessing-pieces-arrays/script.rst @@ -16,10 +16,11 @@ .. 1. getting started with arrays - +.. #[anand: internal reviewer not mentioned] .. Author : Puneeth Internal Reviewer : External Reviewer : + Language Reviewer : Bhanukiran Checklist OK? : [2010-10-05] Script @@ -223,7 +224,7 @@ We say, to get the elements of rows indexed from 0 to 3, 3 not included and column indexed 2. Note that, the index before the colon is -included and the index after it is not included, in the slice that +included and the index after it is not included in the slice that we have obtained. This is very similar to the ``range`` function, where ``range`` returns a list, in which the upper limit or stop value is not included. -- cgit From 235dda893789f4c0a59935de5257de04fc99bc1c Mon Sep 17 00:00:00 2001 From: Anand Raj Date: Sun, 7 Nov 2010 01:18:26 +0530 Subject: checklist OK for `accessing pieces arrays` --- accessing-pieces-arrays/script.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accessing-pieces-arrays/script.rst') diff --git a/accessing-pieces-arrays/script.rst b/accessing-pieces-arrays/script.rst index 10d3e3e..9599835 100644 --- a/accessing-pieces-arrays/script.rst +++ b/accessing-pieces-arrays/script.rst @@ -21,7 +21,7 @@ Internal Reviewer : External Reviewer : Language Reviewer : Bhanukiran - Checklist OK? : [2010-10-05] + Checklist OK? : <06-11-2010, Anand, OK> [2010-10-05] Script ------ -- cgit