Python C extension to compute the permanent.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

16 行
261B

  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