| Karim Belabas on Mon, 08 Jul 2024 21:31:31 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: vecsort() shortdocs |
Hi Ilya,
* Ilya Zakharevich [2024-07-08 21:15]:
> [I vaguely remember reporting this already a few years ago.]
>
> On 2.15.5, pressing F1 on vecsort() says:
>
> vecsort(x,{cmpf},{flag=0}): sorts the vector of vectors (or matrix)
> x in ascending order
>
> — but vecsort() operates happily on vectors of numbers as well.
the short doc for vecsort was rewritten some time ago, probably
following your report. In (soon-to-be-released) 'master' it reads:
vecsort(x,{cmpf},{flag=0}): sorts the vector x in ascending order, according
to the comparison function cmpf, if not omitted. Binary digits of flag (if
present) mean: 1: indirect sorting, return the permutation instead of the
permuted vector, 4: use descending instead of ascending order, 8: remove
duplicate entries.
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/