mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-05 22:04:27 +08:00
* Issue #1071: add yapf configuration file * yapf formatting of Code directory * yapf formatting of Contrib directory * yapf formatting of Data directory * yapf formatting of Docs directory * yapf formatting of External directory * yapf formatting of Projects directory * yapf formatting of Regress directory * yapf formatting of Scripts directory * yapf formatting of Web directory * yapf formatting of rdkit directory
9 lines
313 B
Python
Executable File
9 lines
313 B
Python
Executable File
from __future__ import print_function
|
|
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
|