File: test.py

package info (click to toggle)
rdkit 202209.3-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 203,880 kB
  • sloc: cpp: 334,239; python: 80,247; ansic: 24,579; java: 7,667; sql: 2,123; yacc: 1,884; javascript: 1,358; lex: 1,260; makefile: 576; xml: 229; fortran: 183; cs: 181; sh: 101
file content (8 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8

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