summaryrefslogtreecommitdiff
path: root/numpy/f2py/docs/pytest.py
blob: abd3487dfbf47f35ec546e14ca5460035b3bd4e9 (plain)
1
2
3
4
5
6
7
8
9
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