gcd¶
-
hep_spt.
gcd
(a, b, *args)[source]¶ Calculate the greatest common divisor of a set of numbers.
- Parameters
a (int or numpy.ndarray(int)) – first number(s).
b (int or numpy.ndarray(int)) – second number(s).
args (tuple(int or numpy.ndarray(int))) – any other numbers.
- Returns
Greatest common divisor of a set of numbers.
- Return type
int or numpy.ndarray(int)
- Raises
TyperError – If the arrays do not contain integers or if the shapes do not coincide.