Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #195: We only support a 28000 bps connection.


comp / comp.lang.python / Re: Relatively prime integers in NumPy

SubjectAuthor
o Re: Relatively prime integers in NumPyPeter J. Holzer

1
Subject: Re: Relatively prime integers in NumPy
From: Peter J. Holzer
Newsgroups: comp.lang.python
Date: Fri, 12 Jul 2024 09:14 UTC
References: 1 2
Attachments: signature.asc (application/pgp-signature)
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-python@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Re: Relatively prime integers in NumPy
Date: Fri, 12 Jul 2024 11:14:11 +0200
Lines: 43
Message-ID: <mailman.32.1720776158.2981.python-list@python.org>
References: <SA0PR09MB6363F3E6B493202E73869DF4DBDA2@SA0PR09MB6363.namprd09.prod.outlook.com>
<20240712091411.tei3pcnzzy5eby6f@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="vcfqyab2naxtehgq"
X-Trace: news.uni-berlin.de beXiQjHds2tGbNs84y+dLwehvs2JUQ7TB2WEXP7klFhQ==
Cancel-Lock: sha1:G311FwKDedT8yp0qfwYnXLDj/Wo= sha256:x8FrZNwILOQ3+hNwUM1cqYiIFHlmptFTGVRrSe8UEkY=
Return-Path: <hjp-python@hjp.at>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'content-
type:multipart/signed': 0.05; 'content-type:application/pgp-
signature': 0.09; 'filename:fname piece:asc': 0.09;
'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; 'mechanism': 0.09; 'numpy':
0.09; 'url:reference': 0.09; 'url:stable': 0.09; '"creative':
0.16; '__/': 0.16; 'challenge!"': 0.16; 'from:addr:hjp-python':
0.16; 'from:addr:hjp.at': 0.16; 'from:name:peter j. holzer': 0.16;
'hjp@hjp.at': 0.16; 'holzer': 0.16; 'prime': 0.16; 'reality.':
0.16; 'relatively': 0.16; 'stross,': 0.16; 'typing': 0.16; 'url-
ip:212.17.106/24': 0.16; 'url-ip:212.17/16': 0.16; 'url:doc':
0.16; 'url:generated': 0.16; 'url:hjp': 0.16; 'url:numpy': 0.16;
'|_|_)': 0.16; 'wrote:': 0.16; 'to:addr:python-list': 0.20;
'i.e.': 0.22; 'brings': 0.26; 'sense': 0.28; 'url-ip:188/8': 0.31;
'python-list': 0.32; 'header:In-Reply-To:1': 0.34; 'provide':
0.60; 'search': 0.61; 'received:212': 0.62; 'identify': 0.64;
'received:userid': 0.66; 'factor': 0.69; 'url-ip:212/8': 0.69;
'received:at': 0.84
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <SA0PR09MB6363F3E6B493202E73869DF4DBDA2@SA0PR09MB6363.namprd09.prod.outlook.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <20240712091411.tei3pcnzzy5eby6f@hjp.at>
X-Mailman-Original-References: <SA0PR09MB6363F3E6B493202E73869DF4DBDA2@SA0PR09MB6363.namprd09.prod.outlook.com>
View all headers

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!"

Attachments: signature.asc (application/pgp-signature)
1

rocksolid light 0.9.8
clearnet tor