vector_gcd {minMSE}R Documentation

Vector Greatest Common Divisor

Description

Computes the GCD of a vector.

Usage

vector_gcd(vec)

Arguments

vec

a vector, for which we want to compute the GCD.

Value

The GCD of the elements in the given vector.

Examples

input = c(3,6,9)
vector_gcd(input)

[Package minMSE version 0.5.1 Index]