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.

README.md 524B

il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 8 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
1234567891011121314151617181920
  1. # permanent
  2. Implements Ryser's algorithm for the [permanent](https://en.wikipedia.org/wiki/Permanent).
  3. Install:
  4. ```bash
  5. $ pip install permanent
  6. ```
  7. Use:
  8. ```python
  9. >>> from numpy import *
  10. >>> from permanent import permanent
  11. >>> permanent(eye(15, dtype=complex)
  12. (1-0j)
  13. ```
  14. Please note that for now we assume that the input array's `dtype` is `complex`. So for example:
  15. ```python
  16. >>> permanent(array([[0,1],[1,1]]), dtype=complex)
  17. (1+0j)
  18. ```
  19. whereas ```permanent(array([[0,1],[1,1]]))``` will not produce the expected result.