diff options
Diffstat (limited to 'numpy/f2py/docs/pytest.py')
-rw-r--r-- | numpy/f2py/docs/pytest.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/f2py/docs/pytest.py b/numpy/f2py/docs/pytest.py new file mode 100644 index 000000000..abd3487df --- /dev/null +++ b/numpy/f2py/docs/pytest.py @@ -0,0 +1,10 @@ +#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 |