Skip to main content

Python PPL wrapper

Project description

This Python package provides a wrapper to the C++ Parma Polyhedra Library (PPL).

How it works

The names of objects and methods are the same as in the library:

import ppl
x = ppl.Variable(0)
y = ppl.Variable(1)
z = ppl.Variable(2)
cs = ppl.Constraint_System()
cs.insert(x >= 0)
cs.insert(y >= 0)
cs.insert(z >= 0)
cs.insert(x + y + z == 1)
poly = ppl.C_Polyhedron(cs)

Note that in order to compile this package you need the ppl libraries and header files.

Source

Find the latest version on github: https://github.com/videlec/pplpy/

Requirements

  • PPL libraries with headers

  • Cython

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pplpy-0.2.tar.gz (283.2 kB view details)

Uploaded Source

File details

Details for the file pplpy-0.2.tar.gz.

File metadata

  • Download URL: pplpy-0.2.tar.gz
  • Upload date:
  • Size: 283.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pplpy-0.2.tar.gz
Algorithm Hash digest
SHA256 62eb924b13da24b80c8574870b5b387a5df90cac8441b403f9161c602bec372c
MD5 64c6fa265ead7ad19687402b18aff117
BLAKE2b-256 ae8d8eef6fdafd3610d464eee530a11fe8b3e1d0a06ecaa63ff8f6d11a57f8a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page