Mercurial > octave
comparison liboctave/util/oct-sort.cc @ 21578:683a1beee538
maint: Use "FIXME:" for all code blocks needing further attention.
* files-dock-widget.cc, file-editor-tab.cc, file-editor-tab.h,
file-editor.cc, octave-qscintilla.cc, octave-qt-link.cc, __ilu__.cc, debug.h,
oct-stream.cc, pt-jit.cc, __magick_read__.cc, ov-classdef.cc, pt-stmt.cc,
oct-sort.cc, inputParser.m, validateattributes.m, fminunc.m, fsolve.m, fzero.m,
__scatter__.m, print.m:
Use "FIXME:" for all code blocks needing further attention.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 01 Apr 2016 14:55:13 -0700 |
parents | 40de9f8f23a6 |
children | b6a686543080 |
comparison
equal
deleted
inserted
replaced
21577:31823239207e | 21578:683a1beee538 |
---|---|
1801 octave_sort<T>::lookup (const T *data, octave_idx_type nel, | 1801 octave_sort<T>::lookup (const T *data, octave_idx_type nel, |
1802 const T *values, octave_idx_type nvalues, | 1802 const T *values, octave_idx_type nvalues, |
1803 octave_idx_type *idx, Comp comp) | 1803 octave_idx_type *idx, Comp comp) |
1804 { | 1804 { |
1805 // Use a sequence of binary lookups. | 1805 // Use a sequence of binary lookups. |
1806 // TODO: Can this be sped up generally? The sorted merge case is dealt with | 1806 // FIXME: Can this be sped up generally? The sorted merge case is dealt with |
1807 // elsewhere. | 1807 // elsewhere. |
1808 for (octave_idx_type j = 0; j < nvalues; j++) | 1808 for (octave_idx_type j = 0; j < nvalues; j++) |
1809 idx[j] = lookup (data, nel, values[j], comp); | 1809 idx[j] = lookup (data, nel, values[j], comp); |
1810 } | 1810 } |
1811 | 1811 |