File: first.py

package info (click to toggle)
normaliz 3.6.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 25,880 kB
  • sloc: cpp: 37,346; makefile: 1,611; python: 596
file content (9 lines) | stat: -rw-r--r-- 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import PyQNormaliz_cpp
C = PyQNormaliz_cpp.NmzCone(number_field="min_poly (a2-2) embedding 1.4+/-0.1",cone=[[[1],[0,1]],[[1],[-1]]])
PyQNormaliz_cpp.NmzCompute( C, [ "SupportHyperplanes" ] )
PyQNormaliz_cpp.NmzResult( C, "ExtremeRays" )

def rat_handler(list):
    return list[0]/list[1]

PyQNormaliz_cpp.NmzResult( C, "ExtremeRays", RationalHandler=rat_handler, NumberfieldElementHandler=tuple, VectorHandler=tuple, MatrixHandler=tuple )