mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
8 lines
275 B
Python
8 lines
275 B
Python
import linalg
|
|
from Numeric import *
|
|
|
|
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
|