Mercurial > hg > octave-nkf
changeset 4995:fd4d0aab09d7
[project @ 2004-09-15 20:41:11 by jwe]
author | jwe |
---|---|
date | Wed, 15 Sep 2004 20:41:11 +0000 |
parents | 48d0defe9445 |
children | fcbdb120450a |
files | src/DLD-FUNCTIONS/sort.cc |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/sort.cc +++ b/src/DLD-FUNCTIONS/sort.cc @@ -80,13 +80,13 @@ bool double_compare (double a, double b) { - return (xisnan (b) || (a < b)); + return (xisnan(b) || (a < b)); } bool double_compare (vec_index *a, vec_index *b) { - return (xisnan (b->vec) || (a->vec < b->vec)); + return (xisnan(b->vec) || (a->vec < b->vec)); } template class octave_sort<double>; @@ -102,7 +102,7 @@ bool complex_compare (complex_vec_index *a, complex_vec_index *b) { - return (xisnan (b->vec) || (abs (a->vec) < abs (b->vec))); + return (xisnan(b->vec) || (abs(a->vec) < abs(b->vec))); } template class octave_sort<complex_vec_index *>; @@ -194,7 +194,7 @@ } } - retval(1) = idx; + retval (1) = idx; } else { @@ -348,7 +348,7 @@ } } } - retval(1) = idx; + retval (1) = idx; } else { @@ -485,7 +485,7 @@ } if (return_idx) - retval(1) = idx; + retval (1) = idx; retval(0) = m; @@ -519,7 +519,7 @@ unsigned int ns = dv (dim); unsigned int iter = dv.numel () / ns; unsigned int stride = 1; - for (unsigned int i = 0; i < static_cast <unsigned int> (dim); i++) + for (unsigned int i = 0; i < (unsigned int)dim; i++) stride *= dv(i); if (return_idx) @@ -585,7 +585,7 @@ } } } - retval(1) = idx; + retval (1) = idx; } else {