From 75c2d2fe3cc9daa6589707fb6b8512ffa48fc365 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Thu, 2 Jan 2014 22:12:01 +0200 Subject: DOC: move f2py documentation under doc/ and link its user guide with Sphinx --- doc/f2py/pytest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/f2py/pytest.py (limited to 'doc/f2py/pytest.py') diff --git a/doc/f2py/pytest.py b/doc/f2py/pytest.py new file mode 100644 index 000000000..bf4ef917f --- /dev/null +++ b/doc/f2py/pytest.py @@ -0,0 +1,12 @@ +from __future__ import division, absolute_import, print_function + +#File: pytest.py +import Numeric +def foo(a): + a = Numeric.array(a) + m, n = a.shape + for i in range(m): + for j in range(n): + a[i, j] = a[i, j] + 10*(i+1) + (j+1) + return a +#eof -- cgit v1.2.1