comparison src/DLD-FUNCTIONS/sort.cc @ 5499:9e3efbc3070a

[project @ 2005-10-17 20:11:52 by jwe]
author jwe
date Mon, 17 Oct 2005 20:11:52 +0000
parents cbcd2009c4be
children 8d7162924bd3
comparison
equal deleted inserted replaced
5498:3b3e8b7f0800 5499:9e3efbc3070a
681 "-*- texinfo -*-\n\ 681 "-*- texinfo -*-\n\
682 @deftypefn {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x})\n\ 682 @deftypefn {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x})\n\
683 @deftypefnx {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{dim})\n\ 683 @deftypefnx {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{dim})\n\
684 @deftypefnx {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{mode})\n\ 684 @deftypefnx {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{mode})\n\
685 @deftypefnx {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{dim}, @var{mode})\n\ 685 @deftypefnx {Loadable Function} {[@var{s}, @var{i}] =} sort (@var{x}, @var{dim}, @var{mode})\n\
686 Return a copy of @var{x} with the elements elements arranged in\n\ 686 Return a copy of @var{x} with the elements arranged in increasing\n\
687 increasing order. For matrices, @code{sort} orders the elements in each\n\ 687 order. For matrices, @code{sort} orders the elements in each column.\n\
688 column.\n\
689 \n\ 688 \n\
690 For example,\n\ 689 For example,\n\
691 \n\ 690 \n\
692 @example\n\ 691 @example\n\
693 @group\n\ 692 @group\n\
721 \n\ 720 \n\
722 For equal elements, the indices are such that the equal elements are listed\n\ 721 For equal elements, the indices are such that the equal elements are listed\n\
723 in the order that appeared in the original list.\n\ 722 in the order that appeared in the original list.\n\
724 \n\ 723 \n\
725 The @code{sort} function may also be used to sort strings and cell arrays\n\ 724 The @code{sort} function may also be used to sort strings and cell arrays\n\
726 of strings, it which case the dictionary order of the strings is used.\n\ 725 of strings, in which case the dictionary order of the strings is used.\n\
727 \n\ 726 \n\
728 The algorithm used in @code{sort} is optimized for the sorting of partially\n\ 727 The algorithm used in @code{sort} is optimized for the sorting of partially\n\
729 ordered lists.\n\ 728 ordered lists.\n\
730 @end deftypefn") 729 @end deftypefn")
731 { 730 {