File: simple.py

package info (click to toggle)
python-numarray 1.5.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,668 kB
  • ctags: 11,384
  • sloc: ansic: 113,864; python: 22,422; makefile: 197; sh: 11
file content (6 lines) | stat: -rw-r--r-- 137 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
from MA import *
x=[1.0, 2.0, 1.e20, 4.0]
y = masked_values(x, 1.e20)
print "y", y
print "filled(y, 0.)", filled(y, 0.)
print "y+y", y+y