gmpy-1.11rc1.win32-py2.6.exe をインストールしましたが、使い方がわかりません。mpz、mpq、mpf などのエクスポートされた関数がいくつか表示されますが、次のような関数を呼び出すにはどうすればよいですかGNU MP C ライブラリの mpz_probab_prime_p()?
Google Codeで gmpy を見ましたが、まだわかりません。gmpy のドキュメントもどこにも見つかりませんでした。ありがとう。
gmpy-1.11rc1.win32-py2.6.exe をインストールしましたが、使い方がわかりません。mpz、mpq、mpf などのエクスポートされた関数がいくつか表示されますが、次のような関数を呼び出すにはどうすればよいですかGNU MP C ライブラリの mpz_probab_prime_p()?
Google Codeで gmpy を見ましたが、まだわかりません。gmpy のドキュメントもどこにも見つかりませんでした。ありがとう。
For now the txt
file jbochi mentions is all there is -- and unfortunately it's not structured in the terms the OP requires, i.e., showing what underlying GMP functions are used in each gmpy
-exposed function or method. If you're a GMP expert you can search the gmpy code here -- specifically in this file, which implements MPZ functionality, you'll see the call you seek at line 1538 (within the is_prime
function/method).
I did recently acquire site gmpy.org
with the idea of developing better online docs, but haven't gotten started yet (of course I could equally well use the wiki pages at gmpy's google code hosting site) -- as always in open source, volunteers are welcome!-)
ドキュメントはこちらにあります。
GMPY2 のドキュメントは ReadTheDocs にあります。インストール手順と API リファレンスがあります。
これも役に立つかもしれません:
>>> import(gmpy)
>>> help(gmpy)