File: pytest.py

package info (click to toggle)
python-numpy 1%3A1.12.1-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 23,568 kB
  • sloc: ansic: 146,995; python: 98,089; cpp: 1,112; makefile: 425; f90: 307; sh: 173; fortran: 169; perl: 58
file content (12 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
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