Mercurial > octave
diff etc/NEWS.8.md @ 31026:f03e1eebf46d
perms.m: Add new input option "unique" to return only unique permutations (bug #60364)
perms.m: Add new function to return only unique permutations, expand input validation,
expand docstring.
NEWS.8.md: Add note about perms taking a new input option.
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Wed, 25 May 2022 17:58:13 -0400 |
parents | cb9451780a15 |
children | 451fb63a10a0 |
line wrap: on
line diff
--- a/etc/NEWS.8.md Wed May 25 15:12:00 2022 -0400 +++ b/etc/NEWS.8.md Wed May 25 17:58:13 2022 -0400 @@ -11,6 +11,11 @@ - `integral` can now output a second argument passing the error parameter from the underlying integrator. +- `perms` now accepts a second argument "unique" to return only unique +permutations for inputs with repeated elements. It is faster and takes +less memory to call `perms ('aaaabbbbcccc', "unique")` than to call +`unique (perms ('aaaabbbbcccc'), "rows")`. + ### Graphical User Interface