Sujet : Re: Relatively prime integers in NumPy
De : hjp-python (at) *nospam* hjp.at (Peter J. Holzer)
Groupes : comp.lang.pythonDate : 12. Jul 2024, 11:14:11
Autres entêtes
Message-ID : <mailman.32.1720776158.2981.python-list@python.org>
References : 1 2
Pièces jointes : signature.asc (application/pgp-signature) On 2024-07-08 19:09:45 +0000, Popov, Dmitry Yu via Python-list wrote:
Does NumPy provide a simple mechanism to identify relatively prime
integers, i.e. integers which don't have a common factor other than +1
or -1?
Typing "numpy gcd" into my favourite search engine brings me to
https://numpy.org/doc/stable/reference/generated/numpy.gcd.html hp
-- _ | Peter J. Holzer | Story must make more sense than reality.|_|_) | || | | hjp@hjp.at | -- Charles Stross, "Creative writing__/ | http://www.hjp.at/ | challenge!"