Files
rdkit/Code/Demos/boost/numpy/test.py
Greg Landrum 24f1737839 Remove a bunch of Python2-related warts (#2315)
* remove all of the "from __future__" imports

* remove the first batch of rdkit.six imports/uses

* next step of rdkit.six removal

* removing xrange, range, and some maps

* next round of removals

* next round of cleanups

* fix inchi test

* last bits of "from rdkit.six" are gone

* and the last of the six stuff is gone

* strange importlib problem
2019-03-06 20:43:49 -05:00

9 lines
276 B
Python
Executable File

from Numeric import *
import linalg
print(linalg.GetFirstElement(array([1, 0, 2], Int)))
print(linalg.GetFirstElement(array([1, 0, 2], Float)))
print(linalg.GetFirstElement(array([1, 0, 2], Float64)))
print(linalg.GetFirstElement(array([1, 0, 2], Complex))) # will be zero