Python C extension to compute the permanent.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run-tests.py 261B

10 jaren geleden
10 jaren geleden
123456789101112131415
  1. import os
  2. import time
  3. import multiprocessing as mp
  4. import numpy as np
  5. import lib
  6. import time
  7. dimension=2
  8. real=np.ones((dimension, dimension))
  9. imag=np.ones((dimension, dimension))
  10. submatrix=real+1j*imag
  11. print submatrix.dtype
  12. p=lib.permanent(submatrix)
  13. print p