← numpy-100

Update index

7851c71d4a5a0cbb375e0c8abf2654569223d544 · Nicolas Rougier · May 27, 2014 06:12

+26 −2 · 2 files changed

  • README.txt +0 −1
  • index.rst +26 −1
diff --git a/README.txt b/README.txt
index a75a8e8..3562846 100644
--- a/README.txt
+++ b/README.txt
@@ -1,4 +1,3 @@
-
 100 Numpy exercices
 ===================
 
diff --git a/index.rst b/index.rst
index 0d7ad53..033fe22 100644
--- a/index.rst
+++ b/index.rst
@@ -2,10 +2,35 @@
 100 numpy exercises
 ===================
 
--------------------------------------
 A joint effort of the numpy community
 -------------------------------------
 
+The goal is both to offer a quick reference for new and old users and to
+provide also a set of exercices for those who teach.
+
+If you remember having asked or answered a (short) problem, you can send a pull
+request. The format is:
+
+
+#. Find indices of non-zero elements from [1,2,0,0,4,0]
+
+   .. code:: python
+
+      # Author: Somebody
+
+      print np.nonzero([1,2,0,0,4,0])
+
+
+If you can provide the assumed level of the answer, that would be even better.
+
+Here is what the page looks like so far:
+
+http://www.loria.fr/~rougier/teaching/numpy.100/index.html
+
+(The level names came from an old-game: Dungeon Master)
+
+
+
 .. contents::
    :local:
    :depth: 1