Skip to content

Commit 86a42b0

Browse files
committed
Initial commit
0 parents  commit 86a42b0

6 files changed

Lines changed: 1369 additions & 0 deletions

File tree

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
MAKE = /usr/bin/make
2+
RST2HTML = rst2html.py
3+
RST2LATEX = rst2latex.py
4+
STYLESHEET = numpy.css
5+
RST2HTML_OPTIONS = --strip-comments \
6+
--report=3 \
7+
--stylesheet=$(STYLESHEET) \
8+
--link-stylesheet
9+
RST2LATEX_OPTIONS = --strip-comments \
10+
--report=3 \
11+
--use-latex-toc
12+
13+
SOURCES = $(wildcard *.rst)
14+
HTML_OBJECTS = $(subst .rst,.html, $(SOURCES))
15+
LATEX_OBJECTS = $(subst .rst,.tex, $(SOURCES))
16+
17+
html: $(HTML_OBJECTS)
18+
19+
latex: $(LATEX_OBJECTS)
20+
21+
%.html: %.rst Makefile
22+
@echo " - $@"
23+
@$(RST2HTML) $(RST2HTML_OPTIONS) $< $@
24+
25+
%.tex: %.rst Makefile
26+
@echo " - $@"
27+
@$(RST2LATEX) $(RST2LATEX_OPTIONS) $< $@
28+
29+
clean:
30+
@-rm -f $(LATEX_OBJECTS) $(HTML_OBJECTS)
31+
32+
distclean: clean
33+
@-rm -f `find . -name "*~"`
34+
35+

README.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
100 Numpy exercices
3+
===================
4+
5+
The goal is both to offer a quick reference for new and old users and to
6+
provide also a set of exercices for those who teach.
7+
8+
If you remember having asked or answered a (short) problem, you can send a pull
9+
request. The format is:
10+
11+
12+
#. Find indices of non-zero elements from [1,2,0,0,4,0]
13+
14+
.. code:: python
15+
16+
# Author: Somebody
17+
18+
print np.nonzero([1,2,0,0,4,0])
19+
20+
21+
If you can provide the assumed level of the answer, that would be even better.
22+
23+
Here is what the page looks like so far:
24+
25+
http://www.loria.fr/~rougier/teaching/numpy.100/index.html
26+
27+
(The level names came from an old-game: Dungeon Master)

0 commit comments

Comments
 (0)