summaryrefslogtreecommitdiff
path: root/accessing_parts_of_arrays
diff options
context:
space:
mode:
authorJovina2011-08-03 12:53:36 +0530
committerJovina2011-08-03 12:53:36 +0530
commit6062664292d84a979b5341bed1b8555cd8880b2c (patch)
tree5bf75c2cf50b99bfff2315a26dd0086d8fecd517 /accessing_parts_of_arrays
parente21d3ae97d36f9d40caf22c91ad0bade588411c4 (diff)
downloadst-scripts-6062664292d84a979b5341bed1b8555cd8880b2c.tar.gz
st-scripts-6062664292d84a979b5341bed1b8555cd8880b2c.tar.bz2
st-scripts-6062664292d84a979b5341bed1b8555cd8880b2c.zip
Minor correction to 'accessing parts of arrays '.
Diffstat (limited to 'accessing_parts_of_arrays')
-rw-r--r--accessing_parts_of_arrays/script.rst6
-rw-r--r--accessing_parts_of_arrays/slides.org6
-rw-r--r--accessing_parts_of_arrays/slides.tex2
3 files changed, 7 insertions, 7 deletions
diff --git a/accessing_parts_of_arrays/script.rst b/accessing_parts_of_arrays/script.rst
index 48ed2e9..0a9d6ad 100644
--- a/accessing_parts_of_arrays/script.rst
+++ b/accessing_parts_of_arrays/script.rst
@@ -668,13 +668,13 @@ Obtain the elements, ``[[21, 22], [31, 32]]``
3. Given the array,
::
- B = array([[10, 11, 12, 13],
+ C = array([[10, 11, 12, 13],
[20, 21, 22, 23]])
Change the array to
::
- B = array([[10, 11, 10, 11],
+ C = array([[10, 11, 10, 11],
[20, 21, 20, 21]])
.. L58
@@ -699,7 +699,7 @@ And the answers,
3. We can change the elements of array C,by using slicing and striding
::
- B[:2, 2:] = B[:2, :2]
+ C[:2, 2:] = C[:2, :2]
.. L59
diff --git a/accessing_parts_of_arrays/slides.org b/accessing_parts_of_arrays/slides.org
index 98d5923..621a2ef 100644
--- a/accessing_parts_of_arrays/slides.org
+++ b/accessing_parts_of_arrays/slides.org
@@ -33,7 +33,7 @@
#+begin_latex
\begin{center}
\vspace{12pt}
-\textcolor{blue}{\huge Getting started with Arrays}
+\textcolor{blue}{\huge Accessing pieces of Arrays}
\end{center}
\vspace{18pt}
\begin{center}
@@ -115,7 +115,7 @@
2. Given the array,
- C = array([[10, 11, 12, 13],
+ B = array([[10, 11, 12, 13],
[20, 21, 22, 23],
[30, 31, 32, 33],
[40, 41, 42, 43]])
@@ -137,7 +137,7 @@
2. B[1:3, 1:3]
- 3. B[:2, 2:] = B[:2, :2]
+ 3. C[:2, 2:] = C[:2, :2]
*
#+begin_latex
diff --git a/accessing_parts_of_arrays/slides.tex b/accessing_parts_of_arrays/slides.tex
index 6562a6b..01a9f49 100644
--- a/accessing_parts_of_arrays/slides.tex
+++ b/accessing_parts_of_arrays/slides.tex
@@ -219,7 +219,7 @@ Obtain the elements, ``[[21, 22], [31, 32]].''
\vspace{12pt}
\item B[1:3, 1:3]
\vspace{12pt}
-\item B[:2, 2:] = B[:2, :2]
+\item C[:2, 2:] = C[:2, :2]
\end{enumerate}
\end{frame}
\begin{frame}