v, Dmitry Yu
Sent: Friday, July 12, 2024 11:10 PM
To: avi.e.gr...@gmail.com; 'Popov, Dmitry Yu via Python-list'
; oscar.j.benja...@gmail.com
Subject: Re: Relatively prime integers in NumPy
Thank you very much. List comprehensions make code much more concise indeed. Do
list com
-list'
; oscar.j.benja...@gmail.com
Subject: RE: Relatively prime integers in NumPy
Dmitry, I clearly did not understand what you wanted earlier as you had not
made clear that in your example, you already had progressed to some level where
you had the data and were now doing a second s
ry Yu via Python-list'
; oscar.j.benja...@gmail.com; Popov, Dmitry Yu
Subject: Re: Relatively prime integers in NumPy
Thank you very much, Oscar.
Using the following code looks like a much better solution than my current
Python code indeed.
np.gcd.reduce(np.transpose(a))
or
np.gc
, Dmitry Yu via Python-list
Sent: Thursday, July 11, 2024 2:25 PM
To: avi.e.gr...@gmail.com ; 'Popov, Dmitry Yu via
Python-list'
Subject: Re: Relatively prime integers in NumPy
Thank you for your interest. My explanation is too concise indeed, sorry. So
far, I have used Python code
vely prime integers h,k,l pass to this
block of the code
From: avi.e.gr...@gmail.com
Sent: Thursday, July 11, 2024 1:22 PM
To: Popov, Dmitry Yu ; 'Popov, Dmitry Yu via Python-list'
Subject: RE: Relatively prime integers in NumPy
Дмитрий, You may think you explained what you
On 2024-07-08 19:09:45 +, 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://nump
, 2024 3:26 PM
To: avi.e.gr...@gmail.com; 'Popov, Dmitry Yu via Python-list'
Subject: Re: Relatively prime integers in NumPy
Thank you for your interest. My explanation is too concise indeed, sorry. So
far, I have used Python code with three enclosed 'for' loops for th
(posting on-list this time)
On Thu, 11 Jul 2024 at 15:18, Popov, Dmitry Yu via Python-list
wrote:
>
> Dear Sirs.
>
> 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? For
> example, in case of this
words
about -1 and 1 are about. Perhaps someone else knows.
-Original Message-
From: Python-list On
Behalf Of Popov, Dmitry Yu via Python-list
Sent: Monday, July 8, 2024 3:10 PM
To: Popov, Dmitry Yu via Python-list
Subject: Relatively prime integers in NumPy
Dear Sirs.
Does NumPy
Dear Sirs.
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? For
example, in case of this array:
[[1,5,8],
[2,4,8],
[3,3,9]]
I can imagine a function which would return array of common factors alon
10 matches
Mail list logo