MATLAB Compiler Previous page   Next Page

int CompareTo(const mwArray& arr) const

Compare two arrays for order.

C++ syntax

Arguments

arr.   Array to compare to this array.

Return value

Returns a negative integer, zero, or a positive integer if this array is less than, equal to, or greater than the specified array.

Description

Compares this array with the specified array for order. This method makes a byte-wise comparison of the underlying arrays. Therefore, arrays of the same type should be compared. Arrays of different types will, in general, not be ordered equivalently, even if they are initialized with the same data.


Previous page  bool Equals(const mwArray& arr) const int HashCode() const Next page

© 1994-2005 The MathWorks, Inc.