Python C extension to compute the permanent.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

20 lignes
657B

  1. #!/usr/bin/env python
  2. from distutils.core import setup, Extension
  3. setup(name = "permanent",
  4. version = "0.1.2",
  5. description = "Calculates the permanent of a Numpy matrix",
  6. author = "Pete Shadbolt",
  7. author_email = "pete.shadbolt@gmail.com",
  8. maintainer = "pete.shadbolt@gmail.com",
  9. url = "https://github.com/peteshadbolt/permanent",
  10. packages = ["permanent"],
  11. ext_modules = [
  12. Extension(
  13. 'permanent.permanent', ['./src/permanent.c'],
  14. extra_compile_args=["-Ofast", "-march=native"]),
  15. ],
  16. )