Owning Class: basic
Requires: MathScript RT Module
c = gcd(a, b)
[c, d, e] = gcd(a, b)
Computes the pairwise greatest common divisor of the input elements.
Name | Description |
---|---|
a | Specifies a scalar or matrix. All elements of a must be positive integers. |
b | Specifies a scalar or matrix of the same size as a. All elements of b must be positive integers. |
Name | Description |
---|---|
c | Returns the greatest common divisor of a and b. c is a matrix of the same size as a or b. |
d | Returns a matrix of the same size as a or b such that c = a.*d+b.*e. |
e | Returns a matrix of the same size as a or b such that c = a.*d+b.*e. |
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | Yes |
Supported on RT targets | Yes |
Suitable for bounded execution times on RT | Not characterized |
A = 234
B = 98
C = gcd(A, B)