summaryrefslogtreecommitdiff
path: root/doc/f2py/pytest.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2014-01-02 22:12:01 +0200
committerPauli Virtanen <pav@iki.fi>2014-01-02 22:19:47 +0200
commit75c2d2fe3cc9daa6589707fb6b8512ffa48fc365 (patch)
tree32e729ca94dd28e06c7c2e10fd250f2ce4b91a2a /doc/f2py/pytest.py
parenta32807e61b25205cc08d552127234b56709c6242 (diff)
downloadnumpy-75c2d2fe3cc9daa6589707fb6b8512ffa48fc365.tar.gz
DOC: move f2py documentation under doc/ and link its user guide with Sphinx
Diffstat (limited to 'doc/f2py/pytest.py')
-rw-r--r--doc/f2py/pytest.py12
1 files changed, 12 insertions, 0 deletions
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