Mercurial > octave
comparison scripts/specfun/module.mk @ 31942:7782d1ead0a0
Replace perms.m with new perms.cc (bugs 63962 and 63965)
The perms() function was previously an Octave m-file. This edit replaces it
with the faster perms.cc C++ function for performance (bug 63962), using
std::next_permutation from the C++ STL. Incidentally, this new function also
correctly returns unique permutations for cells, thereby fixing bug 63965.
* scripts/specfun/perms.m: Delete old m-file.
* scripts/specfun/module.mk: Remove m-file from build system.
* libinterp/corefcn/perms.cc: Add new C++ function.
* libinterp/corefcn/module.mk: Add perms.cc to build system.
author | Hendrik Koerner <koerhen@web.de> |
---|---|
date | Tue, 28 Mar 2023 11:52:15 -0400 |
parents | a7c4fb821d64 |
children |
comparison
equal
deleted
inserted
replaced
31939:8e82a7fc21aa | 31942:7782d1ead0a0 |
---|---|
16 %reldir%/isprime.m \ | 16 %reldir%/isprime.m \ |
17 %reldir%/lcm.m \ | 17 %reldir%/lcm.m \ |
18 %reldir%/legendre.m \ | 18 %reldir%/legendre.m \ |
19 %reldir%/nchoosek.m \ | 19 %reldir%/nchoosek.m \ |
20 %reldir%/nthroot.m \ | 20 %reldir%/nthroot.m \ |
21 %reldir%/perms.m \ | |
22 %reldir%/primes.m \ | 21 %reldir%/primes.m \ |
23 %reldir%/reallog.m \ | 22 %reldir%/reallog.m \ |
24 %reldir%/realpow.m \ | 23 %reldir%/realpow.m \ |
25 %reldir%/realsqrt.m \ | 24 %reldir%/realsqrt.m \ |
26 %reldir%/sinint.m | 25 %reldir%/sinint.m |