Mercurial > hg > octave-nkf
diff src/data.cc @ 8734:767ed8cc6634
rename internal issorted and issorted_rows functions to is_sorted and is_sorted_rows
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 12 Feb 2009 15:29:12 -0500 |
parents | 3ef774603887 |
children | d0755c9db5ed |
line wrap: on
line diff
--- a/src/data.cc +++ b/src/data.cc @@ -5645,7 +5645,7 @@ { octave_value arg = args(0); if (arg.dims ().is_vector ()) - retval = args(0).issorted () != UNSORTED; + retval = args(0).is_sorted () != UNSORTED; else error ("issorted: needs a vector"); } @@ -5659,7 +5659,7 @@ if (arg.is_sparse_type ()) error ("issorted: sparse matrices not yet supported"); if (arg.ndims () == 2) - retval = arg.issorted_rows (smode) != UNSORTED; + retval = arg.is_sorted_rows (smode) != UNSORTED; else error ("issorted: needs a 2-dimensional object"); }