Mercurial > octave-nkf
view test/bug-36025/bug-36025.tst @ 20643:d6d04088ac9e
nbininv.m: Increase speed (85X) and accuracy of function (bug #34363).
* nbininv.m: Call new function scalar_nbininv to calculate nbininv for scalar.
If there are still uncalculated values then call bin_search_nbininv. Call
bin_search_nbininv directly for vectors. Add more BIST tests.
* nbininv.m (scalar_binoinv): New subfunction to calculate nbininv for scalar x.
Stops when x > 1000.
* nbininv.m (bin_search_nbininv): New subfunction to do binary search for nbininv.
author | Lachlan Andrew <lachlanbis@gmail.com> |
---|---|
date | Sun, 11 Oct 2015 20:33:37 -0700 |
parents | 1af8d21608b7 |
children |
line wrap: on
line source
%!test %! warning off Octave:function-name-clash %! f = testclass (1, 2); %! assert (one (f), 1); %! assert (two (f), 2); %! rehash (); %! assert (one (f), 1); %! assert (two (f), 2); %! assert (two (f), 2);