summaryrefslogtreecommitdiff
path: root/numpy/f2py/docs/pytest.py
blob: b49dc764ad9c43caf4f6de02c10e41f889731381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from __future__ import division

#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