vecgcd

Computes the GCD of the elements of the integer vector V.

Ahora está siguiendo esta publicación

G = VECGCD(V) is the greatest common divisor of the elements of the integer
vector V. V must be a row or a column vector of integers.We define gcd([]) = 1 and gcd([0 0 ... 0]) = 0.

I believe that this routine is faster than recursively computing GCDs and the algorithm is simple enough to be used for pencil and paper calculations.

Citar como

Steven Gregory (2026). vecgcd (https://es.mathworks.com/matlabcentral/fileexchange/30216-vecgcd), MATLAB Central File Exchange. Recuperado .

Categorías

Más información sobre Arithmetic Operations en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0