Python C extension to compute the permanent.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run-tests.py 262B

10 년 전
1234567891011
  1. import os
  2. import time
  3. import multiprocessing as mp
  4. import numpy as np
  5. import lib
  6. dimension=8
  7. real=np.random.uniform(0,1,(dimension, dimension))
  8. imag=np.random.uniform(0,1,(dimension, dimension))
  9. submatrix=real+1j*imag
  10. print "OUTPUT: ", lib.permanent(submatrix)