summaryrefslogtreecommitdiff
path: root/doc/f2py/pytest.py
diff options
context:
space:
mode:
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