Dynamic_Games.PAES.equal C# (CSharp) Метод

equal() приватный Метод

private equal ( double first, double second, int n ) : int
first double
second double
n int
Результат int
        int equal(double[] first, double[] second, int n)
        {
            // checks to n-dimensional vectors of objectives to see if they are identical
            // returns 1 if they are, 0 otherwise

            int i = 0;
            do
            {
                if (first[i] != second[i])
                    return (0);
                i++;
            } while (i < n);
            return (1);
        }