Python C extension to compute the permanent.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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