From 997622a3ff79cc0670d16cbb054992462ffeaa60 Mon Sep 17 00:00:00 2001 From: timmy <1105151861@qq.com> Date: Mon, 23 Oct 2017 10:07:28 +0800 Subject: [PATCH 1/3] fixed list index --- README.html | 4 ++-- README.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.html b/README.html index 1ccfb2e..070994b 100644 --- a/README.html +++ b/README.html @@ -322,10 +322,10 @@

Counting neighbours

corresponds to the formula above applied individually to each element. Said differently, we have (1+(2*Z+3))[i,j] == (1+(2*Z[i,j]+3)) for any i,j.

Ok, so far, so good. Now what happens if we add Z with one of its subpart, -let's say Z[-1:1,-1:1] ?

+let's say Z[1:-1,1:-1] ?

->>> Z + Z[-1:1,-1:1]
+>>> Z + Z[1:-1,1:-1]
 Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 ValueError: operands could not be broadcast together with shapes (6,6) (4,4)
diff --git a/README.rst b/README.rst
index 4b4e896..de28684 100644
--- a/README.rst
+++ b/README.rst
@@ -328,9 +328,9 @@ corresponds to the formula above applied individually to each element. Said
 differently, we have ``(1+(2*Z+3))[i,j] == (1+(2*Z[i,j]+3))`` for any i,j.
 
 Ok, so far, so good. Now what happens if we add Z with one of its subpart,
-let's say ``Z[-1:1,-1:1]`` ?
+let's say ``Z[1:-1,1:-1]`` ?
 
-  >>> Z + Z[-1:1,-1:1]
+  >>> Z + Z[1:-1,1:-1]
   Traceback (most recent call last):
   File "", line 1, in 
   ValueError: operands could not be broadcast together with shapes (6,6) (4,4)  

From 0460c336ec47b08a069df601b0b113b413c761d2 Mon Sep 17 00:00:00 2001
From: "Nicolas P. Rougier" 
Date: Tue, 15 Oct 2019 14:12:34 +0200
Subject: [PATCH 2/3] Removed old dead link and added a link to the numpy book

---
 README.rst | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/README.rst b/README.rst
index de28684..c689ea5 100644
--- a/README.rst
+++ b/README.rst
@@ -18,13 +18,12 @@ Sources are available from `github `_
 All code and material is licensed under a `Creative Commons
 Attribution-ShareAlike 4.0 `_.
 
-Tutorial can be read at http://www.labri.fr/perso/nrougier/teaching/numpy/numpy.html
 
 See also:
+ * `From Python to Numpy `_
  * `Matplotlib tutorial `_
  * `100 Numpy exercices `_
 
-
 Introduction
 ============
 

From 862926262af97b98458e71402aed4b8a22faeb9c Mon Sep 17 00:00:00 2001
From: tigermonkey 
Date: Fri, 25 Oct 2019 13:28:09 +0200
Subject: [PATCH 3/3] Update README.rst

Fixing typo
---
 README.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.rst b/README.rst
index c689ea5..0fb3b3b 100644
--- a/README.rst
+++ b/README.rst
@@ -589,7 +589,7 @@ obtained via the `finite difference method
               Z[1:-1,0:-2] - 4*Z[1:-1,1:-1] + Z[1:-1,2:] +
                                Z[2:  ,1:-1] )
 
-Finally, we can iterate the computation after havong choosed some interesting parameters::
+Finally, we can iterate the computation after choosing some interesting parameters::
 
   for i in range(25000):
       Lu = laplacian(U)