On Mon, Jun 7, 2010 at 4:19 AM, Daniele Nicolodi wrote:
> Hello. There is a method in numpy to compute the greater common divisor
> of the elements of an array? Searching through the documentation I
> didn't find it.
>
>
If you need to do more complicated stuff based around the GCD, like finding
googling for
greatest common divisor OR denominator numpy OR scipy OR python
I found this:
http://projects.scipy.org/numpy/browser/trunk/numpy/core/_internal.py?rev=8316
554 def _gcd(a, b):
555 """Calculate the greatest common divisor of a and b"""
556 while b:
557
Hello. There is a method in numpy to compute the greater common divisor
of the elements of an array? Searching through the documentation I
didn't find it.
Thanks. Cheers,
--
Daniele
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mai